Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

CharlesYuan02/sentiment-analysis-stock-trader

Repository files navigation

Prerequisites

All code was written in Python 3.7.9. Please seerequirements.txt for dependencies.

beautifulsoup4==4.12.0pandas==1.2.3praw==7.7.0requests==2.28.1snscrape==0.3.4tqdm==4.56.2numpy==1.24.2scikit-learn==1.2.2torch==2.0.0+cu117torchaudio==2.0.1+cu117torchvision==0.15.1+cu117transformers==4.27.3

Description of Files

This file calls functions defined in the other files to create a dataset (this is not the final dataset that we will be using for sentiment analysis, just a preliminary proof of concept).

This is the example dataset created using create_dataset.py.

This file uses the pretrained FinBERT model on the example dataset.

This file contains functions to scrape S and P 500 stock tickers and names from Wikipedia, scrape news headlines for any S and P 500 stock from Yahoo Finance, and scrape news headlines for any S and P 500 stock from MarketWatch.

This file contains functions to scrape titles and top comments of top posts from a specified subreddit on Reddit. Note that it requires you to have a file called info.txt saved in the same directory, with the first line of this file being your Reddit API client ID, the second line being your Reddit API client secret, and the third and final line of this file being your Reddit API user agent.

License

This project is licensed under the MIT License - see theLICENSE file for details.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp