|
|
@ -185,8 +185,8 @@ class PublicRelations(Bureau):
|
|
|
|
prn._raw(t_enc)
|
|
|
|
prn._raw(t_enc)
|
|
|
|
|
|
|
|
|
|
|
|
if "media" in tweet["entities"]:
|
|
|
|
if "media" in tweet["entities"]:
|
|
|
|
if len(tweet["entities"]["media"]) > 0:
|
|
|
|
for entity in tweet["entities"]["media"]
|
|
|
|
i_url = tweet["entities"]["media"][0]["media_url"]
|
|
|
|
i_url = entity["media_url"]
|
|
|
|
filename = i_url.rsplit('/',1)[1]
|
|
|
|
filename = i_url.rsplit('/',1)[1]
|
|
|
|
filename = "/tmp/" + filename
|
|
|
|
filename = "/tmp/" + filename
|
|
|
|
print("fetching", i_url, filename)
|
|
|
|
print("fetching", i_url, filename)
|
|
|
|