-
Notifications
You must be signed in to change notification settings - Fork 214
Added Scraping Hacker news website script #105
Added Scraping Hacker news website script #105
Conversation
if len(vote): #To check if class "score" exists or not | ||
points = int(vote[0].getText().replace(' points', '')) | ||
if points > 100: # To get votes/points more than 100 | ||
hackerNews.append({'title': title, 'link': href,'votes':points}) |
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.
Update it to this ⬇
hackerNews.append({'title': title, 'link': href, 'votes': points})
Follow good code practice - here
Signed by - @Neilblaze
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.
Sure okay
''' | ||
Program uses requests module to get web data from URL and BeautifulSoup module to parse the web data | ||
as HTML using html parser. | ||
Install requests and BeautifulSoup module before executing! |
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.
LGTM 👍
Better add README (guide) along with this inside the folder same as your <filename>
& you're good to go!
Signed by - @Neilblaze
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.
Okay. I will add readme inside the folder
@Neilblaze I have made the changes.Please check now |
Good job @GudlaArunKumar 🎉 |
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.
LGTM! 🚀
@ankitdobhal merge status OK!
#CH20
Issue #92
About PR: Created script for scraping the first 2 pages of Hacker news website wherein user can read some cool tech news as articles which has Upvotes more than 100.