diff --git a/README.md b/README.md index 6d52d9bd..5ca4d25e 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,6 @@ If you want to download the notes yourself with python: # Fetch notes poetry run python -m x_notes -# Fetch a big list of GE2024 candidate twitter handles -poetry run python -m x_notes.fetch_candidates - # Optional: fetch tweets poetry run python -m x_notes.fetch_tweets ``` diff --git a/x_notes/fetch_candidates.py b/x_notes/fetch_candidates.py deleted file mode 100644 index dab3337f..00000000 --- a/x_notes/fetch_candidates.py +++ /dev/null @@ -1,20 +0,0 @@ -import csv -import json -from io import StringIO - -import requests - -dc_csv = "https://candidates.democracyclub.org.uk/data/export_csv/" -params = { - "election_id": "parl.2024-07-04", - "has_twitter_username": "yes", - "extra_fields": "twitter_username", - "format": "csv", -} - -r = requests.get(dc_csv, params=params, stream=True) -data = list(csv.DictReader(StringIO(r.text))) -handles = [row["twitter_username"].replace('"', "").lower() for row in data] - -with open("output/_data/ge2024-candidates.json", "w") as fh: - json.dump(handles, fh)