Coder Social home page Coder Social logo

hacker-news's Introduction

Hacker-News

Data scraper in Python to check top posts on Hacker News

Project Overview This Python script scrapes news stories from the first two pages of Hacker News, a social news website focusing on computer science and entrepreneurship. It filters and sorts the stories by the number of votes, specifically highlighting stories with over 99 votes. This tool is ideal for users interested in quickly identifying the most popular discussions on Hacker News without manually browsing through the site.

Features Scrapes the top stories from the first two pages of Hacker News. Filters stories with more than 99 votes. Sorts stories by the number of votes in descending order.

Requirements Python 3 Libraries: requests, bs4

Setup and Installation Ensure Python 3 is installed on your machine. Install the required Python libraries using pip: pip install requests beautifulsoup4

Clone this repository or download the script to your local machine. Run the script using Python: python scrape.py

How to Use Once you run the script, it will fetch stories from Hacker News and display them in the terminal. The output will include the title of each story, its URL, and the number of votes it has received, provided the story has more than 99 votes.

Contributing Contributions to this project are welcome! You can contribute by improving the script, adding features, or reporting bugs. Please feel free to fork the repository and submit a pull request.

hacker-news's People

Contributors

justindeans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.