You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
Scraping the first 2 pages of Hacker news website wherein user can read Tech news(as a articles) which has upvotes more than 100 with help of Requests and
4
+
Beautiful Soup Modules. User can just click on story link to see the article.
5
+
6
+
Link for Hacker news Website - https://news.ycombinator.com/
title=mega_link[index].getText() #To get title of the story(news)
43
+
href=mega_link[index].get('href',None) # To get link of stroy(news).If no link is present, default is None
44
+
vote=mega_votes[index].select('.score') # points are stored inside class "score" of class subtext,if points/votes not available, then class score wont be present.
45
+
iflen(vote): #To check if class "score" exists or not
0 commit comments