r/madeinpython • • Oct 09 '22

I created a Python library to Tweet, Retweet, Like, Quote Tweet without Twitter API

Description: twAuto is a library for "Tweeting", "Retweeting", "Replying", "Tweet Quoting", "Tweet Liking" without any API requirements using Selenium.

After getting rejected even for "Essential API" request, I created my own library for automating Twitter functions like "Tweeting", "Retweeting", "Replying", "Tweet Quoting", "Tweet Liking" using Selenium and wanted to share it with the community, so I uploaded the project to PyPi and GitHub.

Link to the project: https://github.com/EKOzkan/twAuto

Guide if you needed: https://medium.com/@ekinkaganozkan/how-to-do-twitter-automation-without-twitter-api-3b0fb6f16f31

20 Upvotes

10 comments sorted by

2

u/HaroerHaktak Oct 10 '22

Can you improve the 'twint' package to grab all the tweets of a user? coz I tried and while it has gathered 870k, i'm still missing 40k ;-;

1

u/ekozkan Oct 10 '22

If you are getting the number of tweets of the user from Twitter page, it can mislead you, because it counts retweets as a tweet too. But surely I will check if twint missing some of the tweets while scraping.

2

u/HaroerHaktak Oct 10 '22

retweets being someone has clicked "share" on a tweet?

1

u/ekozkan Oct 10 '22

Retweet is the second option in the tweet bar. You can retweet a tweet if you want to share it with your followers.

For better explanation: How to retweet on Twitter | Twitter.com

2

u/HaroerHaktak Oct 10 '22

Interesting. Thank you. I might be able to make adjustments to twint to catch all retweets as well so I can know the true number of tweets lol

2

u/notsoslimshaddy91 Oct 10 '22

Looks good. I got rejected as well by the Twitter Dev team for the API. Might try this library.

0

u/[deleted] Oct 10 '22

[deleted]

1

u/ekozkan Oct 10 '22 edited Oct 10 '22

No they never say why, and once you got rejected you can't apply again. I did some experiments, and found out that, you can even got insta rejected based on country you apply from, even for essential access.

2

u/notsoslimshaddy91 Oct 11 '22

No, they didnt give any justification. I reached out again but no luck.

2

u/asardiwal Oct 10 '22

That’s great. Can you make a selenium lib for whatsapp desktop automation? Like sending messages to many.

2

u/pycobra Oct 14 '22

Nice one, I will give it a try