[go: nahoru, domu]

Skip to content
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

Fix google crawler #84

Closed
hongzio opened this issue Oct 6, 2020 · 3 comments
Closed

Fix google crawler #84

hongzio opened this issue Oct 6, 2020 · 3 comments

Comments

@hongzio
Copy link
hongzio commented Oct 6, 2020

On October 6th, a new attribute (sideChannel) has been added to the response.
Like #74, change site-packages/icrawler/builtin/google.py:154 to the following:

            txt = re.sub(r"^AF_initDataCallback\({.*key: 'ds:(\d)'.+data:(.+), sideChannel: {.*}}\);?$",
                         "\\2", txt, 0, re.DOTALL)
@geriskenderi
Copy link

I can confirm that this fixed google image search issues for me, thanks @hongzio

ZhiyuanChen added a commit to ZhiyuanChen/icrawler that referenced this issue Oct 25, 2020
hellock added a commit that referenced this issue Oct 26, 2020
@ZhiyuanChen
Copy link
Collaborator

Thank you for pointing out!

@ProfPMJ
Copy link
ProfPMJ commented Jan 12, 2021

This has solved the problem for me, but pip is still downloading the old version (even though it says it's version 0.6.3).

Is that something you can update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants