Show HN: Go-odbye – Twitter Follow/Unfollow Reporting Tool Written in Go
domenicoluciani.com
domenicoluciani.com
That said, I would like to be the first to say the following; is it really that necessary to not only include "Go" in the title of the post (as if it were a feature) but also in the name of the application? There, I said it ;) /s
A vi(m) user must always let others know about it.
They get over it, eventually.
Someone tell that to KDE!
A better example would be Elixir, where every package is Ex Something, e.g. ExUnit, Exometer, ExRated.
If Twitter had a way to filter followed people messages by keyword or hashtag It would lead to a healthier environment on that platform. Unfortunately since Twitter basically locked access to its API, writing a fully featured client with that capability isn't even a viable alternative for the terrible UX ...
OTOH if I have to think about which channel / user I tweet to, I think people would tweet less. A bit of noise is ok, I guess.
I still tweet sometimes about Eurovision, which I know must annoy many of my followers, so I try to use the hashtag on every Eurovision related post so that others can mute it if they're not interested. (I guess I should do the same for infosec & coding, so Eurovision fans who aren't into the tech stuff can mute those too.)
But it shouldn't be up to you or your followers to sort the tweets, I don't understand why Twitter doesn't implement this basic feature. The hell it could be something done in the front-end with no server-side code involved at all.
FYI, you probably want some sort of retrial logic instead of a fatal error just for bumping up against a rate-limiting condition.
(As it turns out, the Twitter client library I wrote handles this retrial logic for you automatically: https://github.com/ChimeraCoder/anaconda )
Those flagging this ought to read the guidelines [0].
if err != nil {
color.Set(color.FgRed, color.BlinkSlow)
log.Fatal(err)
color.Unset()
}
https://github.com/dlion/go-odbye/blob/master/main.go#L27 var plus int64
plus = 0
could be written as plus := 0
--The following
if *url == true
should be written as if *url
--Moreover, custom logger could be implemented to avoid code repetition.
The aim of that one is to delete all tweets... but, to do so by scraping Twitter's "First Tweet" page for the oldest tweet.
This needs to be done as it's not actually possible to delete old Tweets using the Twitter API as you cannot find your oldest tweets.
What I would like to achieve is to have Tweets be temporal, and to self-destruct after a period of time. The nature of the way that I use the service is that it is conversational, and a Tweet taken out of context long after the conversation is likely to not be a good representation of my views (fitting reason into 140 chars is hard).
I already use [Tweet Delete](http://www.tweetdelete.net/), but wanted to go back and nuke the older tweets too, hence this code.
But... I broke the page.
https://discover.twitter.com/first-tweet#buro9
That no longer returns my first Tweet, it's borked. My profile still shows I have 1,700+ tweets, but they seem to be totally inaccessible now. Oh well. I did manage to delete a good thousand or so, a small triumph.
Anyhow, Go code and Twitter, I heartily recommend this project:
https://github.com/ChimeraCoder/anaconda
It's an easy to use and quite complete package that implements the Twitter API.
To take this to a constructive place, maybe this is more of a Show HN thing, rather than a release, where you show your interesting code.
Do you care to elaborate?
Someone unfollows you. Then what?
Probably questioning the utility of the tool.
Are you going to write that person and ask why? Are you going to change your tweets because someone doesn't like your writing style, political views or personality?
It's a fun little project, but it's of little actual value.
If they don't follow back after x days you can unfollow them again so that your 'Following' number isn't too inflated, and the ratio of 'Following'/'Followers' is better.
In the real world, 10,000 useless bot or "follow back" followers should be less valuable than a thousand interested followers who are likely to buy something and promote your business.
In social media world its easier for startups to get the thousand "good" followers if they also have 10,000 worthless followers because the good followers will dismiss a business if its only followers are the co-founders and their moms.