Skip to content

Commit b0430b2

Browse files
authored
Merge pull request #2303 from adafruit/picow_cp_wifi
Updating twitter example
2 parents 4764537 + 8cef068 commit b0430b2

File tree

1 file changed

+1
-3
lines changed
  • Pico_W_CircuitPython_WiFi_Examples/Pico_W_Twitter_Feed

1 file changed

+1
-3
lines changed

Pico_W_CircuitPython_WiFi_Examples/Pico_W_Twitter_Feed/code.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import microcontroller
1111
import adafruit_requests
1212

13-
# query URL for tweets. looking for hashtag partyparrot sent to a specific username
13+
# query URL for tweets. looking for tweets from Adafruit that have the text "NEW GUIDE"
1414
# disabling line-too-long because queries for tweet_query & TIME_URL cannot have line breaks
1515
# pylint: disable=line-too-long
1616
tweet_query = 'https://api.twitter.com/2/tweets/search/recent?query=NEW GUIDE from:adafruit&tweet.fields=created_at'
@@ -25,8 +25,6 @@
2525
last_id = 0 # checks last tweet's ID
2626
check = 0 # time.monotonic() holder
2727

28-
print(time.monotonic())
29-
3028
while True:
3129
try:
3230
if (check + 30) < time.monotonic():

0 commit comments

Comments
 (0)