DEV Community

Cover image for This Post Has 2,451 Views, 168 Reactions And 26 Comments

This Post Has 2,451 Views, 168 Reactions And 26 Comments

Robert on June 03, 2020

In this post, I'll be teaching you how to update a DEV post title, The Tom Scott way. YouTuber Tom Scott's latest video titled, "This Video Has X ...
Collapse
 
muhimen123 profile image
Muhimen

You just destroyed my next post idea!! 😒😭😒😭

Collapse
 
devdrake0 profile image
Si

Do it anyway. Maybe do it in a different language so it helps different people.

Collapse
 
meinar profile image
Timar

And it's always interesting to see how the same problem is solved in different languages!

Thread Thread
 
devdrake0 profile image
Si

Eurgh - now I'm tempted to do it in Go.

I just don't have the time.

Thread Thread
 
wobsoriano profile image
Robert

JDI

Collapse
 
muhimen123 profile image
Muhimen

In that case, I am booking python for this.

Collapse
 
muhimen123 profile image
Muhimen
Thread Thread
 
wobsoriano profile image
Robert

Cool!

Collapse
 
wobsoriano profile image
Robert

✌️✌️

Collapse
 
madza profile image
Madza • Edited

First there were static easter eggs like this by Numberphile :)
Apparently, now they stepped it up :)

Collapse
 
wobsoriano profile image
Robert

Checking Numberphile now πŸš€

Collapse
 
madza profile image
Madza

It's awesome and easy to get addicted if you like numbers :)

Collapse
 
bernardthegreat profile image
Bernard Gresola

Trying to see if this counts.

Collapse
 
wobsoriano profile image
Robert

Welcome to DEV!

Collapse
 
ben profile image
Ben Halpern

These are fun πŸ˜„

Collapse
 
wobsoriano profile image
Robert

Indeed! 😁

Collapse
 
mnlwldr profile image
manuel • Edited

Hi Robert, funny idea.
I made this with my Twitter name (Manuel and the x followers) => @mnlwldr and a cronjob that run the code below every minute :)

package main

import (
    "github.com/ChimeraCoder/anaconda"
    "net/url"
    "strconv"
)

func initAnaconda() *anaconda.TwitterApi {
    return anaconda.NewTwitterApiWithCredentials(
        "ACCESS_TOKEN",
        "ACCESS_TOKEN_SECRET",
        "CONSUMER_KEY",
        "CONSUMER_SECRET")
}

func main() {
    api := initAnaconda()
    params := url.Values{}
    me, err := api.GetSelf(params)
    if err != nil {
        panic(err)
    }
    followers := me.FollowersCount
    name := "YOUR_NAME and the " + strconv.FormatInt(int64(followers), 10) + " followers"
    updateParams := url.Values{}
    updateParams.Set("name", name)
    api.PostAccountUpdateProfile(updateParams)
}
Collapse
 
wobsoriano profile image
Robert

Haha looks cool!

Collapse
 
xerosanyam profile image
Sanyam Jain

Commenting just to see the count increase :)

Collapse
 
iainfreestone profile image
Iain Freestone

This is brilliant!

Collapse
 
wobsoriano profile image
Robert

Thanks!

Collapse
 
trollboy_j profile image
Jacko

That's cool! πŸ‘

Collapse
 
wobsoriano profile image
Robert

Thanks!

Collapse
 
alyatek profile image
alyatek

Funny thing is that people will just react or comment to see the counter going up! πŸ˜‚

Collapse
 
manishfoodtechs profile image
manish srivastava

...eeeee.....

Collapse
 
shravan20 profile image
Shravan Kumar B

Interesting