This is the source code for https://dailydoots.com.
- Clone the repo (or fork the repo to your account)
- Install dependencies:
bundle install - Create a feature branch off of the
mainbranch - Start the local server:
bundle exec jekyll serve - Go to http://localhost:4400/ to view changes
To build the site use bundle exec jekyll build.
Resources:
- Create virtual environment:
python3 -m venv _scripts/venv/ - Install dependencies and run script:
. _scripts/venv/bin/activate && pip install -r _scripts/requirements.txt && python _scripts/collect_data.py && deactivate - Or run each command individually:
- Start python virtual environment:
. _scripts/venv/bin/activate - Install dependencies:
pip install -r _scripts/requirements.txt - Run the script:
python _scripts/collect_data.py - Close virtual environment:
deactivate
- Start python virtual environment:
To use this data, simply query one of the following endpoints:
- Dailies - https://dailydoots.com/dailies.json (updates 30min after midnight UTC+0)
- Doots - https://dailydoots.com/doots.json (updates once a week Fridays 2pm EST)
- Profiles - https://dailydoots.com/profiles.json (updated as needed)
Please do not abuse these endpoints. Checking once or twice a day would be sufficient given the update frequency.
Most of the content resides in data files withing _data. If you'd like to update your user profile edit/add an entry in _data/profiles.yml or send a DM to u/hanniabu on Reddit.
Weekly Update
- Update the leaderboard by uploading the RES file from u/jtnichol to this tool, copying the resulting JSON output, and saving it to
_data/doots.jsonreplacing the existing contents. - Update podcast guest list in
_data/guests.yml, remove or comment out old items if necessary - Update announcement list in
_data/announcements.yml, remove or comment out old items if necessary - Update events list in
_data/events.yml, remove or comment out old items if necessary - Update the weekly roundup:
- Create a
.mdfile underweekly/historicalnamed after the weekly roundup date inyyyy-mm-dd.mdformat - Copying the contents template (
weekly/_template) into this new file - Update the metadata at the top
- If there is no podcast then just enter the
dateandweekly_linkand leave the rest empty weekly_linkshould have no subdomain specific, soreddit.cominstead ofold.reddit.comorwww.reddit.comdatefollowsyyyy-mm-ddformatepisodeis just the podcast episode number, do not include a#
- If there is no podcast then just enter the
- Copy over the weekly doots
- For each item copy the item text and paste into the
<summary> {{paste here}} </summary>tags - Copy the comment links into the
[View on Reddit →]( {{paste here}} )field - View the comment under
old.reddit.comusing the RES extention to copy the comment "source" (markdown) and paste the in the area below "View on Reddit" and before the closing</details>tag - Bare links (non hyperlinked) need to be wrapped in
< {{link}} >to properly be converted to a hyperlink - You'll need to copy the templated
<details> ... </details>sections for each of the weekly doots, there's a separate template for single and double doots (double doots means it references 2 comments) - Do a find/replace to replace all instances of
old.reddit.comorwww.reddit.comwithreddit.com
- For each item copy the item text and paste into the
- Create a
- r/ethfinance initiation thread
- r/ethfinance creation on 2019-01-22 by u/dcinvestor
- Sub stats
- PushShift Archive