The objective of this project is to understand gain a general understanding of death row in the state of Texas. Fortunately, a ton of rich data on this subject is publicly available here: https://www.tdcj.texas.gov/index.html
This repository will contain code for scraping and collecting the relevant data for the analysis, as well as the analysis itself. The repo will also contain all the data collected, and hopefully some visualizations.
Table of contents:
$ git clone https://github.com/nissichima/texas_criminal_justice.git$ cd /path/to/texas_criminal_justice$ python code/deathrow.py --filepath /path/to/save/data/file_name.csvDone! Your data should be in the specificed location, saved as a comma-separated file.
Crontab comes in handy when trying to automate tasks and you can do it for this as well!
List all your cron jobs.
$ crontab -lDelete the current cron job.
$ crontab -rFor more details on crontab:
$ man crontabOpen editor to add scheduling command:
$ crontab -e[* * * * *] command_to_executeTo learn more about cron format visit:[https://en.wikipedia.org/wiki/Cron]
Schedule the scraper to collect and update data from the website everyday at midnight.
$ crontab -eEnter the following into editor:
0 0 * * * bash /path/to/your/bash_file
Save the file by executing :wq
Done!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. ⴀ