Open twmht opened 3 years ago
Google has changed their UI and this no longer works. I am looking for a solution to this myself. When using bing I am getting this:
Traceback (most recent call last):
File "console.py", line 77, in <module>
main()
File "console.py", line 73, in main
_bing.bing(metadata, query, limit, adult)
File "/Users/xuser/Downloads/image_search-master/image_search/_bing.py", line 106, in bing
for i in soup.find_all("a", class_="iusc")]
File "/Users/xuser/Downloads/image_search-master/image_search/_bing.py", line 106, in <listcomp>
for i in soup.find_all("a", class_="iusc")]
File "/usr/local/Cellar/python@3.7/3.7.9_3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@3.7/3.7.9_3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@3.7/3.7.9_3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 348 (char 347)
Not being an experienced python coder I am a bit lost (I a beginner on the language).
Hi all, I wrote this library when I was a Freshman in high school and didn't know much about Python (which explains some of the poor code structure in this repo). In order to fix a majority of the new issues, there will be need to a major restructure, which I plan to getting around to at some point. If anyone else is interested in working on this earlier, I would be happy to review PRs.
Issue Template
Please provide what type of issue this is (i.e. bug, suggestion, etc.), your stacktrace (if applicable), and steps taken to try to fix or avoid this bug/issue (if applicable).
I try to google cat with limit 10 images
any idea?