Adoni5 / EarthPorn-Map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser for the top 1000 earthporn posts.

Setup

git clone https://github.com/Adoni5/EarthPorn-Map
cd EarthPorn-Map
python -m venv earthporn
pip install -r requirements.txt

Register for reddit keys here

Create a .env file in the EarthPorn-Map directory. Add your reddit secret key and password -

REDDIT_PASSWORD="<Reddit-Passowrd>"
CLIENT_SECRET=="Reddit-client-secret"

Running

python PrawScraper.py

The output will be output to EartPorn-Map/files/country_data_counts.json

Visualisation

An observable notebook that can be forked to use the data can be found here.

About


Languages

Language:Python 100.0%