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

Add feature to change headers if needed #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itzmetanjim
Copy link

Just a User-Agent might not be enough to convince google, so if you want, you can now add your own headers.

Just a User-Agent might not be enough to convince google, so if you want, you can now add your own headers.
Copy link
Owner

@Nv7-GitHub Nv7-GitHub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are some parts of the code that shouldn't be related removed? Other thank that it looks good!

@@ -64,10 +67,6 @@ def search(term, num_results=10, lang="en", proxy=None, advanced=False, sleep_in
description_box = result.find("div", {"style": "-webkit-line-clamp:2"})

if link and title and description_box:
link = result.find("a", href=True)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this part?

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

Successfully merging this pull request may close these issues.

2 participants