-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing argument 'keywords' #6
Comments
Run this from command line after cloning the repo. Should work. |
Uhh, i forgot to mention i want to use this module from other python file, not from terminal |
Well i too am trying to figure out the same. Let me know if you find a solution. :p |
@buszonos Try this. Download this file, unzip and replace it with your original bing_scraper.py file. I have replaced all Google URLs with that of Bing and now it's taking argument --keywords without using --search |
I understand you want to use the module from within another Python file, not from the terminal. You can achieve this by importing the module and making a function call with the required arguments. If you encounter any issues, feel free to ask for help. Good luck! |
This should be merged with the main branch. |
Adding offset
Hi,
My problem is: every time I try to run this module with 'search' argument and without 'keywords' argument, i get error message "Uh oh! Keywords is a required argument[....]". When i use 'keywords' argument only, module will use google images as a source, and it obviously won't download any images. When I use both, it will still use google images url. I will provide you part of my code if it helps you.
import bing_scraper
response = bing_scraper.googleimagesdownload()
arguments = {"search": 'honeybees on flowers',
"limit": 10,
"download":True,
"chromedriver":r"C:\Users\User\Desktop\python\chromedriver.exe"
}
response.download(arguments)
The text was updated successfully, but these errors were encountered: