This commit is contained in:
Jan Koppe 2021-12-21 22:48:21 +01:00
parent 84a9dfe3bb
commit d50384bf30
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
6 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
export BEARER_TOKEN=$(cat token) export BEARER_TOKEN=$(cat token)
curl -s -X GET -H "Authorization: Bearer $BEARER_TOKEN" \ curl -s -X GET -H "Authorization: Bearer $BEARER_TOKEN" \
"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 "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" > public/tweets-rc3.json

View File

@ -146,7 +146,7 @@ if __name__ == "__main__":
return ev_date + grace > now and ev_date + datetime.timedelta(minutes=ev["duration"]) > now return ev_date + grace > now and ev_date + datetime.timedelta(minutes=ev["duration"]) > now
events = filter(is_upcoming, events) events = filter(is_upcoming, events)
with open("fahrplan.json", "w") as f: with open("public/fahrplan.json", "w") as f:
json.dump(list(events), f) json.dump(list(events), f)

0
public/.gitkeep Normal file
View File