Headless chromedriver for automatic scraping of cryptopanics asynchronous newsfeed.
Explore the docs »
Report Bug
·
Request Feature
Cryptopanic is a crypto news aggregator that offers realtime news feeds of all things crypto as well as user input for ratings. This project was designed to scrape the data from their website so it could be later analyzed using NLP.
To get a local copy up and running follow these simple steps.
- python 3
- pip
- Clone the cryptopanic_scraper
git clone https:://github.com/grilledchickenthighs/cryptopanic_scraper.git
- Change directory
cd cryptopanic_scraper
- Install packages
pip install -r requirements.txt
Simply run:
python cryptopanic_scraper.py --headless
If you want to see it in action, run the script without any flags.
python cryptopanic_scraper.py
If you want to filter the type of news to scrape add the --filter flag and choose a type. {all,hot,rising,bullish,bearish,lol,commented,important,saved}
python cryptopanic_scraper.py --filter hot
You can always use the --help flag if you forget these commands:
python cryptopanic_scraper.py --help
usage: cryptopanic_webdriver.py [-h] [-v]
[-f {all,hot,rising,bullish,bearish,lol,commented,important,saved}]
[-s]
optional arguments:
-h, --help show this help message and exit
-v, --verbose increase output verbosity
-f {all,hot,rising,bullish,bearish,lol,commented,important,saved}, --filter {all,hot,rising,bullish,bearish,lol,commented,important,saved}
Type of News filter
-s, --headless Run Chrome driver headless
If your interested in analyzing the data:
Please feel free to check out the jupyter directory for getting started.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Paul Mendes - @BTCTradeNation - paulsperformance@gmail.com
Project Link: https://github.com/grilledchickenthighs/cryptopanic_scraper