-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Python program that surfs 3 site at a time #1389
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
Conversation
add input in the compiling time like -- python3 project1.py (man)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated tests are failing. See CONTRIBUTING.md for details.
project1.py
Outdated
#from urllib.request import urlopen | ||
import webbrowser | ||
import sys | ||
from fake_useragent import UserAgent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please explain I don't understand what to do and how to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment out the line that it is complaining about and then see if the script still runs. flake8 is saying that the import is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment out the line that it is complaining about and then see if the script still runs. flake8 is saying that the import is not needed.
commented
it is needed otherwise program will work for 2 - 3 times then stop working.
…On Fri, 18 Oct 2019 at 16:36, Christian Clauss ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In project1.py
<#1389 (comment)>:
> @@ -0,0 +1,21 @@
+from bs4 import BeautifulSoup
+import requests
+#from urllib.request import urlopen
+import webbrowser
+import sys
+from fake_useragent import UserAgent
Comment out the line that it is complaining about and then see if the
script still runs. flake8 is saying that the import is not needed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1389?email_source=notifications&email_token=AKPOV4KII4IRUHIZEJHDSF3QPGKBTA5CNFSM4JCBN46KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCIN5ZZQ#discussion_r336435645>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKPOV4JACOJHRGFSXMHISLLQPGKBTANCNFSM4JCBN46A>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few tweeks made but now it is ready to land. Thanks!
* Python program that scrufs 3 site at a time add input in the compiling time like -- python3 project1.py (man) * Update project1.py * noqa: F401 and reformat with black * Rename project1.py to web_programming/crawl_google_results.py * Add beautifulsoup4 to requirements.txt * Add fake_useragent to requirements.txt * Update crawl_google_results.py * headers={"UserAgent": UserAgent().random} * html.parser, not lxml * link, not links
add input in the compiling time like -- python3 project1.py (man)