Coder Social home page Coder Social logo

pecord / hn_link_summarizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 169 KB

This project is designed to scrape and summarize links from Hacker News, focusing on stock-related content. It utilizes Python for the main functionality, including web scraping, data processing, and summarization of articles. The project also includes functionality to process stock data and generate markdown reports.

Shell 0.51% Python 99.03% PowerShell 0.46%

hn_link_summarizer's Introduction

Hacker News Link Summarizer

Overview

This project is designed to scrape and summarize links from Hacker News, focusing on stock-related content. It utilizes Python for the main functionality, including web scraping, data processing, and summarization of articles. The project also includes functionality to process stock data and generate markdown reports.

Features

Hacker News Scraper: Scrapes links from Hacker News and saves them to a CSV file. Link Summarizer: Summarizes the content of scraped links using the Ollama API and saves the summaries in a markdown file. Stock Data Processor: Processes stock data for specified symbols and generates a markdown report with historical data and technical indicators.

Requirements

Before running the project, ensure you have Python installed on your system. Then, install the required Python packages using the following command:

pip install -r requirements.txt

Configuration

The project can be configured using the config.json file. Here you can specify parameters such as the period for stock data, stock symbols of interest, and output settings.

Example config.json:

{
    "recent_period": "1y",
    "stock_symbols": ["AAPL", "AMZN", "NFLX", "NVDA"],
    "pages": 2,
    "output_folder": "output",
    "csv_filename": "hacker_news_links.csv",
    "markdown_filename": "hacker_news_links.md",
    "max_links": 100
}

Usage

To scrape Hacker News links, run: ./scrape_hn_links.sh

To summarize the scraped links, run: ./summarize_hn_links.sh

To process stock data and generate a markdown report, execute the stock_data_processor.py script: python3 stock_data_processor.py

Output

The output will be saved in the output directory, including the CSV file with scraped links (hacker_news_links.csv), the markdown file with summaries (hacker_news_links.md), and the markdown report for stock data.

Contributing

Contributions to this project are welcome. Please ensure you follow the coding standards and write tests for new features.

License

This project is open-source and available under the MIT License

hn_link_summarizer's People

Contributors

pecord 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.