5 ms·
Show HN: Twitter API Wrapper for Python – No API Keys Needed
I have created a Twitter API wrapper that works with just a username, email address, and password — no API key required. With this library, you can post tweets, search, and check trending topics for free. In addition, it supports both asynchronous and synchronous use, so it can be used in a variety of situations.
Please send me your comments and suggestions.
Additionally, if you're willing, kindly give me a star on GitHub.
- d60 3y agohttps://github.com/d60/twikit https://github.com/d60/twikit
- hiAndrewQuinn 3y agoVery cool, first I'm hearing of httpx https://www.python-httpx.org/ https://www.python-httpx.org/ I think most people would start with trying out requests or something for this kind of work, I'm guessing that didn't work out? You've got a star from me.
- batch12 3y agoHttpx is nice because it can be used to easily perform asynchronous requests. I imagine that's one of the reasons it got picked here.
- lkjasdfyoew 3y agoI don't know why you would ever use requests unless you are a gevent user.
- andenacitelli 3y agoRequests works just fine for 99% of use cases and is much more prevalent, meaning it has a lot more hits on Google if you’re debugging something. Not saying it’s better, just sufficient for most use cases.
- hiAndrewQuinn 3y agoWorse is better, as they say :)
- d60 3y agoThanks for your comment! httpx supports both synchronous and asynchronous, which is very useful! Very useful tool.
- jerpint 3y agoIs it that easy to interact programmatically with twitter? Doesn’t that make it ripe for bots?
- dgfitz 3y agoIcwatudidthar
- JohnMakin 3y agoElite comment
- tjpnz 3y agoIn principle, yes. But this approach will inevitably trigger bot mitigations and eventually get your account banned.
- d60 3y agoI have never had an account banned for using this. I do my utmost to avoid being banned, including setting up headers. If you are concerned, try this on a non-critical account first. And, of course, spamming or making too many requests can lead to a ban.
- gremlinsinc 3y agoif you're the kind of person wanting to do bots you're not going to get found probably because you'd use spoofing, proxies or vpns, and multiple accounts.
- i_have_an_idea 3y agoThat would be against T&C and illegal, since you're logged in.
- stanleykm 3y agoillegal?
- ceejayoz 3y agohttps://en.wikipedia.org/wiki/Aaron_Swartz https://en.wikipedia.org/wiki/Aaron_Swartz
- thelastparadise 3y agoexplain pls
- ceejayoz 3y ago[flagged]
- ctxc 3y agoWitty, but echoing the asker - with a somewhat shaky understanding of Aaron - what does it mean? Do journals relate to corporate twitter accounts? Or does it mean you're going to jail for not following t&c?
- ceejayoz 3y agoHe was charged under the CFAA for using his own legitimate account in a way that was entirely legal but they felt violated the TOS. All the detail you seek is in the link.
- smashah 3y ago> T&C I don't understand anyone who make this comment who isn't a a billion dollar company. We are humans. T&Cs are fairytales written by lawyers to abuse our digital human right to interoperability. People ought to be able to interact with their own accounts as they please.
- d60 3y agoThanks for all the comments and stars! This library uses Twitter's internal API to manipulate Twitter.
- tjpnz 3y agoDon't use this with an account you want to keep.