diff --git a/dl_tweets.sh b/dl_tweets.sh index dcdd52f..c0289fe 100644 --- a/dl_tweets.sh +++ b/dl_tweets.sh @@ -1,4 +1,4 @@ #!/bin/bash -export BEARER_TOKEN= +export BEARER_TOKEN=$(cat token) curl -s -X GET -H "Authorization: Bearer $BEARER_TOKEN" \ - "https://api.twitter.com/2/tweets/search/recent?query=%23rC3&tweet.fields=created_at&expansions=author_id,attachments.media_keys&media.fields=preview_image_url&user.fields=profile_image_url" > tweets-rc3.json + "https://api.twitter.com/2/tweets/search/recent?query=%23rC3cwtv&tweet.fields=created_at&expansions=author_id,attachments.media_keys&media.fields=preview_image_url&user.fields=profile_image_url" > tweets-rc3.json diff --git a/fahrplan.py b/fahrplan.py index 127eca4..ac3accb 100644 --- a/fahrplan.py +++ b/fahrplan.py @@ -10,7 +10,7 @@ import subprocess from lxml import etree from urllib.request import urlopen -scheduleUrl = 'http://data.c3voc.de/rC3/everything.schedule.xml' +scheduleUrl = 'http://data.c3voc.de/rC3_21/everything.schedule.xml' scheduleTree=None