Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit eb92b6b

Browse files
Added Readme as per PR review
1 parent 2a35441 commit eb92b6b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Scraping Hacker news Website
2+
3+
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/

Web-Scraping/ScrappingHackerNewsWebsite.py renamed to Web-Scraping/ScrappingHackerNewsWebsite/ScrappingHackerNewsWebsite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create_custom_hackernews(mega_link,mega_votes):
4545
if len(vote): #To check if class "score" exists or not
4646
points = int(vote[0].getText().replace(' points', ''))
4747
if points > 100: # To get votes/points more than 100
48-
hackerNews.append({'title': title, 'link': href,'votes':points})
48+
hackerNews.append({'title': title, 'link': href,'votes': points})
4949

5050
return sorted_stories_list(hackerNews)
5151

0 commit comments

Comments
 (0)