We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4764537 + 8cef068 commit b0430b2Copy full SHA for b0430b2
Pico_W_CircuitPython_WiFi_Examples/Pico_W_Twitter_Feed/code.py
@@ -10,7 +10,7 @@
10
import microcontroller
11
import adafruit_requests
12
13
-# query URL for tweets. looking for hashtag partyparrot sent to a specific username
+# query URL for tweets. looking for tweets from Adafruit that have the text "NEW GUIDE"
14
# disabling line-too-long because queries for tweet_query & TIME_URL cannot have line breaks
15
# pylint: disable=line-too-long
16
tweet_query = 'https://api.twitter.com/2/tweets/search/recent?query=NEW GUIDE from:adafruit&tweet.fields=created_at'
@@ -25,8 +25,6 @@
25
last_id = 0 # checks last tweet's ID
26
check = 0 # time.monotonic() holder
27
28
-print(time.monotonic())
29
-
30
while True:
31
try:
32
if (check + 30) < time.monotonic():
0 commit comments