shichao-an / twitter-photos

Simple, fast command-line tool to get photos from Twitter accounts
https://twitter-photos.shichao.io
BSD 2-Clause "Simplified" License
171 stars 39 forks source link

Wrong tweet id #3

Open davboc opened 8 years ago

davboc commented 8 years ago

I don't know if you still follow this project, I hope that you can help me, this is very useful. I see that if I use -p option the tweet id is not the right id

Thanks!

shichao-an commented 8 years ago

Hi,

Can you provide your command and output?

pei-lun commented 5 years ago

$ twphotos -u aguhiyori -s orig -n 5 -p outputs:

aguhiyori 1132867760239702016 http://pbs.twimg.com/media/D7jBOcqUcAAq6l-.jpg
aguhiyori 1132867760239722497 http://pbs.twimg.com/media/D7jBOcqUwAEgyoG.jpg
aguhiyori 1132506706548744192 http://pbs.twimg.com/media/D7d42W2V4AAc0tQ.jpg
aguhiyori 1132506706561253376 http://pbs.twimg.com/media/D7d42W5UwAAsRN2.jpg
aguhiyori 1131781492160417792 http://pbs.twimg.com/media/D7TlRUuVUAAwJvj.jpg

The tweet IDs are all invalid.

j2kao commented 4 years ago

I think the issue is that id in the printed output is the id for the media and not for the tweet. The tweet id can be obtained from expanded_url from the twitter API results.