Open Didou09 opened 4 years ago
I ran the same on my end with the date-time printed. This is what I got:
2020-05-12 19:41:16,473 - tweettoot - INFO - relay() => Init relay from https://twitter.com/EuroSciPy to https://botsin.space. State file /tmp/tt_b67df4aa5c823c5c3d3c22aa28e4e1c73a86dbe5
2020-05-12 19:41:18,061 - tweettoot - INFO - get_tweets() => Fetched 20 tweets for https://twitter.com/EuroSciPy.
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() => Tweeting 1253737600466276352 to https://botsin.space
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() =>2020-04-24 22:58:31
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() => Tweeting 1251268988912443395 to https://botsin.space
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() =>2020-04-18 03:29:09
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() => Tweeting 1240399282995421190 to https://botsin.space
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() =>2020-03-19 03:36:49
2020-05-12 19:41:18,111 - tweettoot - INFO - relay() => Tweeting 1235987701297487873 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-03-06 23:26:46
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1235868034062880768 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-03-06 15:31:15
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1235112746988875777 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-03-04 13:30:00
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1234538966906527752 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-03-02 23:30:00
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1234428825464909825 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-03-02 16:12:21
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1231569185458790400 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-02-23 18:49:09
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1230798932449644544 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-02-21 15:48:27
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1230060371114954752 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-02-19 14:53:40
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1222215009771642886 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2020-01-28 23:19:00
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1207642487860453376 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2019-12-19 18:13:00
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1207642280535973888 to https://botsin.space
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() =>2019-12-19 18:12:11
2020-05-12 19:41:18,112 - tweettoot - INFO - relay() => Tweeting 1201822155803115521 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-12-03 16:45:05
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() => Tweeting 1201506161335439360 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-12-02 19:49:26
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() => Tweeting 1199781485097734144 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-11-28 01:36:11
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() => Tweeting 1199413419931291648 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-11-27 01:13:37
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() => Tweeting 1199405251280936960 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-11-27 00:41:10
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() => Tweeting 1182331731644432388 to https://botsin.space
2020-05-12 19:41:18,113 - tweettoot - INFO - relay() =>2019-10-10 21:57:06
The dates seem to be in the right order. I'll try again with your repo and run this.
Also, I saw that you accidentally committed the Mastodon token in your config.json
. Done that myself a few times :) Recommend you rotate credentials immediately, and add the config.json
to your .gitignore
like I've done in my code.
You're right, token rotation done, thanks !
Hey @Didou09,
Are you still facing the tweet ordering problem?
Dear @ayush-sharma ,
I have made minor changes to branch develop just to make it compatible with low-level hardware like the rapsberry pi 4 which cannot handle python 3.7 and is limited to python 3.4. It basically means it can't handle modern string formatting :
f'blablabl {variable1} blablabla' truned into 'blablabla {} blablabla'.format(variable1)
I changed all concerned strings in all files, but that's all I changed.
Also, I merged your last changes to develop to test (see terminal log below):
Test with Eoruscipy only:
Then I tried adding a second twitter / mastodon pair of accounts following your readme: it worked :+1: . However, I feel the sane problem occured again: the order in which the toots appear on the mastodon instance is not the same as the order in which they were twitted. Any idea why ?
Also, for readability purposes in the config.json file. Maybe we could strip the strings of their empty spaces ' ' when reading them ? It would allow users to add spaces after commas (for readability) and the code to still correctly interpret the string, your opinion ?