r/learnprogramming • • Oct 25 '17

Thanks to r/learnprogramming's help, I built a simple python script that calls out my ISP every time my network speed isn't what i'm paying for!

To check it out look here!

source code also

It essentially calls out my service provider 'Optus', because ever since I upgraded to their 'fiber' service I have gotten nothing but awful service and they have done nothing to fix their attempts for months.

Just wanted to say thank you for the help :)

2.1k Upvotes

233 comments sorted by

507

u/saadrocks Oct 25 '17

I think they will get pissed off lol.

48

u/zomgitsduke Oct 25 '17

They'd get pissed if this could be somehow transformed into a Twitter "app" that anyone can use by doing a few clicks to "install" it to their Twitter account.

Imagine if 25% of an ISP's customers did this... It would turn them into a publicly shamed company in no time.

22

u/[deleted] Oct 26 '17

This has already been done :P

Check the github page here for the sourcecode, that link has the instructions on how to set everything up so that anyone could do it :)

→ More replies (1)

17

u/samsonx Oct 25 '17

Now that might actually make a difference but only if it gets media coverage.

0

u/[deleted] Oct 25 '17

[deleted]

6

u/[deleted] Oct 26 '17

Check out this link!

It shows all the instructions on how to install this piece of software!

→ More replies (1)

247

u/FISTofROSH Oct 25 '17

Hopefully they do! Eventually they will have to do something to shut you up :)

229

u/UndyingJellyfish Oct 25 '17

Like the easy thing and blocking him on Twitter?

75

u/FISTofROSH Oct 25 '17

Got to see it to block it.

→ More replies (27)

19

u/Krogg Oct 25 '17

I'm not familiar with Twitter, if the ISP blocks him, do other customers see the tweets when looking at the ISP's profile, or searching for info on the company?

→ More replies (2)
→ More replies (1)

6

u/WarWizard Oct 25 '17

Like cancel your account :D

→ More replies (1)

23

u/dmitriy_shmilo Oct 25 '17

Or ignore it. Is this ISP a monopoly?

10

u/Its_just_a_Prank-bro Oct 25 '17

Optus is the second best ISP in Australia

9

u/nreisan Oct 26 '17

Don't know if best is the right term, you mean second biggest?

→ More replies (1)
→ More replies (7)

1

u/[deleted] Oct 26 '17

That's my idea! I've been a user of their service for about 6 months now and I call them every few weeks to see if anything is being done, alas nothing...

3

u/CinnamonSwisher Oct 25 '17

They will see it a few times then a bottom of the totem pole tech will block his account. The end. Whole thing probably played out in less than a month with no change

→ More replies (2)

212

u/[deleted] Oct 25 '17

ISPs usually say “up to” in their advertising.

3

u/[deleted] Oct 26 '17

I understand the 'up-to' catch when signing up to their service but paying for 100/40 shouldn't grant me ADSL2+ speeds as one of the people who got Fibre to the Premises

→ More replies (9)

87

u/Krogg Oct 25 '17

They do, this is true. However, their explanation is that you should be getting at least 70% of the service speeds. In this case his paid for service is 100/40, the minimum they "guarantee" is 70/30. Usually ISPs will send out techs to investigate if you aren't getting at least 70%.

15

u/port53 Oct 25 '17

There's no way that 70% is in writing at the prices home users are paying.

For $DAYJOB we get 20-30% CIR with bursting to link speed (which costs more money if you so that too much.). That means on a 1Gb/s link we can only expect to get 300Mb/s 24/7 with up to 1Gb/s available.

18

u/Krogg Oct 25 '17

Here is what my ISP has in writing:

Expected downstream and upstream speed 

During most periods, customers can generally expect average speeds at or above 95% of the advertised "up to" speed and many can generally expect speeds above that level. Less than 20 percent of customers can expect average speeds below 80% of the advertised "up to" speed. In rare cases, average speed may be significantly less than this level.

Every ISP is going to be different, but all have some kind of wording that the expected should be a percentage of the "up to" speed.

→ More replies (4)
→ More replies (1)

4

u/ACoderGirl Oct 26 '17

There's gotta be some kinda expectation for what you actually get, right? Like, otherwise couldn't anyone just say "you get up to 100Mbps" and then give 5Mbps? Some kinda average target seems like a fair expectation. Some people are mentioning stuff like 70% here, but that seems like simply ISP policy and not anything that can be enforced as false advertising. So is there anything that counts as false advertising?

Obviously there's market forces, but new customers will continuously get tripped and the internet is practically a utility these days, with most people needing it and only having a single option.

2

u/HomemadeBananas Oct 25 '17

I haven’t tested in a while, but used to get above advertised speeds with my cable all the time. I won’t say the company so nobody goes all /r/hailcorporate on me.

0

u/[deleted] Oct 25 '17

[deleted]

57

u/mutatedllama Oct 25 '17

You agree to their terms. They wouldn't agree to that.

→ More replies (36)
→ More replies (31)
→ More replies (2)

74

u/bottlecrunchwebdev Oct 25 '17

13

u/[deleted] Oct 26 '17

Yep, this was the inspiration for my project. Whilst he made it to try and get the service provider to acknowledge his poor service, I already acknowledge that i'm just going to have to live with really poor service since i've just had promises made by my provider and i've seen no action taken in six months to rectify the problem.

For me, it's more-so that other people are aware of what these so called 'incredible' fibre services are really like

3

u/mushy-potch Oct 26 '17

To address concerns raised about your app being viewed as spam, maybe you could have it compile a graph or a chart detailing how frequently your speed was below the threshold, and then have that tweeted once daily. Maybe you could even have a randomized, rotating cast of tweet templates so that it comes off less like a spam bot. I feel like the idea is really cool regardless, awesome project!

2

u/[deleted] Oct 26 '17

I'm a fan of the idea of having different rotating tweets to make it seem less like a bot, might just incorporate that...

As for the charting, what you just mentioned was essentially my idea. The current technique i'm using is with the plot.ly python module, although the graphs are queried in the URL as an id rather than the name of the graph so it makes it hard to have a day by day because I can't predict the next days graph id

13

u/6C6F6C636174 Oct 26 '17

I'd recommend not letting it post every hour or less. It's just spam otherwise.

27

u/jplank1983 Oct 25 '17

Yeah I thought this sounded really familiar.

8

u/michalesco Oct 25 '17

Man, looks like you are shooting the tweets quite often. How about changing the ISP?

16

u/HomemadeBananas Oct 25 '17

Just change ISPs? Why don’t I shove myself down in an ISP cannon, and shoot myself off to ISP land, where ISPs grow on ISP-bies?!

1

u/[deleted] Oct 26 '17

Seeing how big Optus' monopoly is you'd still hit Optus territory :P

1

u/[deleted] Oct 26 '17

They were the only provider that could do my area at that time, unfortunately if I could change my provider, i've got friends in the same area that see exactly the same issue with different providers

→ More replies (1)

2

u/RexDraco Oct 25 '17

Everyone and their brother would love to change ISPs.... but you know, monopoly.

→ More replies (8)

16

u/OGCASHforGOLD Oct 25 '17

Usually shit speeds are attributed to WiFi / routers, not the ISP...but when it does happen, it fucking blows. Recently had to drop Xfinity due to 75% packet loss, roughly 12-15 hours a day. They didn't understand why that was problematic. Over 50 phone calls and 5 service tech visits with no prevail. Fuck Comcast.

5

u/BIueskull Oct 25 '17

This is quite ironic because I had decent service with them (must be the area), ever since I switched to at&t, I’ve gotten nothing but 1-2 mbps when I’m supposed to be receiving a “reliable 50 mbps” at all times.

0

u/[deleted] Oct 26 '17

I've got quite a modern router, and i'm plugged in via ethernet and i've had it get to 95/35 at the very start of my service but it went right downhill two weeks later... Wish these guys didn't have such a monopoly over Australia

→ More replies (1)

6

u/alaskadad Oct 25 '17

Except that your ISP only ever promised speeds "Up To" such-and-such...

2

u/[deleted] Oct 26 '17

I'd agree with that point. I don't expect them to constantly provide near 100/40, except the issue is that sometimes get as low as 20/6 in a day and a constant 30-40ping when i've clocked as low as 4ping.

2

u/wh33t Oct 26 '17

Does the script take into account throughput you already using? Cause I imagine if you are downloading or streaming that's gonna skew the speedtest numbers a fair bit. Not defending shitty ISP's, I know they are plentiful but you should be honest about the tests.

2

u/[deleted] Oct 26 '17

I've been running it throughout the day and night, i'm actually at home on my own for three months because family is on holidays so i'm the only one on the network.

Some of the lowest records were recorded during the offpeak times strangely enough.

38

u/the_whining_beaver Oct 25 '17 edited Oct 25 '17

Didn’t someone do just that with Comcast and they ended up blocking and throttling his internet till he stopped?

Edit: Ok they didn’t block him. He just refused to give his info to fix the problem. Not sure if it actually got fixed.

14

u/Nhabls Oct 25 '17

Aww, your first spam bot :,)

24

u/anonymoushero1 Oct 25 '17

serious question as far as legal advertising practices go: Does an advertised bandwidth mean minimum or average ?

22

u/Krogg Oct 25 '17

When the advertised bandwidth has "up to..." then it's a maximum, unfortunately. However, the explanation for the speed usually states what speed you would be more likely to receive.

9

u/exccord Oct 25 '17

Having worked support at an ISP in the past, SOME companies will have a percentage of guaranteed speeds. The one I dealt with had 70 % but then eventually went to 80%. You would have to verify this information with the ISP though.

5

u/DrGFalcao Oct 25 '17

I'm Brazilian. Here ISP's have the obligation of providing 10% of the advertised speed. I have an ADSL ISP that to my luck is excellent. I pay for 60Mbps , never tested and got less than 75 Mbps in 8 months. Usually it's 80+ -- but that's one ISP. I pay a little less to what would exchange to 30 USD.

→ More replies (2)
→ More replies (1)

10

u/[deleted] Oct 25 '17

This seems pretty dishonest if you aren't making any attempt to account for bandwidth that is in use at the time. Your speedtest scores are going to be completely off if you are streaming/watching Netflix/etc when a speedtest is ran.

4

u/withcheesepls Oct 25 '17

Dejavú ? I think I seen this exact same thing before......

→ More replies (1)

1

u/RaptorF22 Oct 26 '17

What were the steps you took that you learned from this sub to accomplish this?

2

u/[deleted] Oct 26 '17

I've been a long-time lurker of this sub, pretty much since I created this reddit account. I mostly try to learn myself by reading others posts rather than making my own post and getting a straight answer because I think it's better for learning.

Whenever i've needed help from this sub they've helped and provided massive amounts of resources, definitely worth subbing to!

1

u/RaptorF22 Oct 26 '17

Oh I am. But i've never sat down and gone through any guides or videos. Was wondering if you had and if you liked any particular ones.

2

u/[deleted] Oct 26 '17

I actually used the subs wiki page which has lots of goodies if you're just getting started.

I normally don't like to suggest videos because it's difficult to grasp the entire concept of particular thing, for example; watching a 5min video on C++ pointers, won't explain pointers at all.

I like to use books as my resources which I find at my university's library or on amazon :)

1

u/arejaytee Oct 26 '17

Nice, I wish I could use the speedtest results reliably though.

This is the results I get 1 after the other (during OFFPEAK, dont even get me started for PEAK),

TypeFromUpDown
SpeedTest.netAARNET8.46 Mbps3.57 Mbps
Fast.comNetflix92 MbpsNot Tested
Direct DownloadAARNET22.31 MbpsNot Tested

Hrmm I wonder if I am being throttled.....

2

u/[deleted] Oct 26 '17

Yeah Optus does very shady businesses in terms of throttling. My speedtest will occasionally log 90/30+ across a few sites but if the site that i'm accessing isn't on one of their approved 'lists' such as Steam, Netflix, Facebook, YouTube, the difference is definitely noticeable. I honestly sometimes have longer waits loading the next page of reddit than buffering and entire youtube video. Ludicrous.

1

u/bruce3434 Oct 26 '17

Optus

I feel sorry for you.

1

u/[deleted] Oct 26 '17

They were the only ISP that would take me :(

1

u/MadMrCrazy Oct 26 '17

I'm actually curious about this. I usually only don't get the speed I'm paying for when it's peak hours while all of the house's devices use it.

1

u/[deleted] Oct 26 '17

Have a look at some of the graphs that the bot sends out, the tweets get sent out between 2-5 hours and the changes between just a few hours are incredibly sporadic, it doesn't make sense that i'm getting 50/30 on peak, and 20/6 off peak. They've just oversold subscriptions and they can't handle it.

1

u/flaccidopinion Oct 26 '17

Just FYI, think you may have a bug in your script.

return st.upload()/1000/1000, st.download()/1000/100

Are you meaning to be dividing the download by 1000 and then only 100? Seems like it should be 1000 twice, to get bytes -> kilobytes -> megabytes.

Although, you may wish to change them all to 1024, to match how the SpeedTest script outputs when prettifying.

You may want to check what type of connection you have as well .. you hashtag NBN on the tweets, so if you're on NBN already then it's out of Optus' hands, you'll just have however NBN connected your street/area.

Still crap if they're not buying enough bandwidth from NBNCo, but not as straightforward as just blaming Optus either I guess. Probably Optus being crap though.

1

u/[deleted] Oct 26 '17

Oh lordy, I was wondering why the program was saying that speeds were good, even though I could tell it wasn't :P

I've fixed that now to actually be correct.

Issue is that i've been contacting both NBN and Optus and i've had no success with contacting either. I've tried many many times in the last few months but my family is on holidays and they won't let me verify that i'm a part of the family without them which is ludicrous...

1

u/mushy-potch Oct 26 '17

Part C, Step 6. of the instructions on the github readme is essentially blank. You may want to update that.

2

u/[deleted] Oct 26 '17

Wow, I was literally looking through the readme to see if I needed changes and just spotted it. Fixed, thanks!

1

u/harishharishharish Oct 26 '17

You expect to achieve only half the speed you are paying for..impressive use of programming :)

2

u/[deleted] Oct 26 '17

Yeah, Optus & Telstra have a monopoly over the Australian internet market. They do what they like and we nod and agree :P

1

u/haroldlearning Oct 30 '17

Haven't seen an update for a few days - i'm curious, did the bot go down or has the speed been above the threshold?

2

u/[deleted] Oct 30 '17

Funny enough I got a call from Optus saying that they sent 'qualified technicians' out to quickly fix the issue, which made it give me good speeds for a day and then it went right back down...

edit: I get an average of 5-10 more than the threshold I set on the script which is a meme and a half

3

u/HalfLucan Oct 25 '17

With great power comes great responsibility

2

u/[deleted] Oct 26 '17

No, with great responsibility comes great power

3

u/neanderthaw Oct 25 '17

Use a hashtag or two so the message goes wider than just to the company that's probably just going to block the bot.

3

u/A_Light_Spark Oct 25 '17

I want to write a script that chain calls the telemarketers every time they attempt to waste my time until they remove my number from their list for real.

5

u/Gothpuncher Oct 25 '17

For anyone sticking up for the ISP:

Optus are notorious for over subscribing their network, and offering nothing in compensation by holding people ransom to contract terms despite delivering anywhere from 0.5 (at the lower end but certainly not the lowest) to 2-4Mbps during peak times on ADSL 2+.

4

u/The_AverageGamer Oct 26 '17

He’s on NBN not ADSL. I don’t doubt that they have oversubscribed their CVC but this dudes boy isn’t going to change a thing.

1

u/Gothpuncher Oct 26 '17

The old 'lay down and cop it' argument.

I agree though, Optus won't care. They haven't until this point, why change now?

2

u/The_AverageGamer Oct 26 '17

Caring just isn't in their best interest. iiNet used to and when they got bought out it stopped because money.

In saying that I get what I pay for from them, 100/40 even during peak which might not last long.

2

u/ZaberTooth Oct 25 '17

This is awesome! Quick thought: It would be cool if there was an "expected" line, that shows what you're paying for versus what you're actually getting.

2

u/Gothpuncher Oct 25 '17

Hahahahaha this is excellent.

Fuck I hate Optus with a passion.

2

u/[deleted] Oct 26 '17

😂 I love the name of your project

3

u/andresopeth Oct 25 '17

haha this is great! nice job man

2

u/[deleted] Oct 26 '17

Kind of a dick move to be honest. There's so many variables when it comes to speed that it's not really fair for your ISP to put up with being called out every single time your Internet drops a few mb below speed.

1

u/Radaistarion Oct 25 '17

I have a baaad feeling about this one boss!

1

u/bowdown2q Oct 25 '17

Now print that out each month and mail it to them with the bill.

1

u/[deleted] Oct 25 '17

Hi. Good stuff. For future, read about .gitignore to stop files such as .DS_Store from making it's way to remote repo.

1

u/samsonx Oct 25 '17

Do you think they don't know this already and that they don't deliberately do it ?

Of course they do - it's all about saving money.

Worst of all - they won't give a shit !

1

u/[deleted] Oct 26 '17

Haha oh my God that's genius. You're going places.

1

u/NetSage Oct 26 '17

So every hour?

1

u/vfxdev Oct 26 '17

How does it handle the fact the side serving the data may be throttling it?

1

u/paulcole710 Oct 26 '17

better make a bot to tell you when they block you on twitter

1

u/Ryugi Oct 26 '17

I love it!!!!

1

u/getkaizer Oct 26 '17

FAntastic! Looks like there is a broadcast every hour or so from your script? Meaning that it gets throttled by Optus every hour?

1

u/[deleted] Oct 26 '17

We get 2x what we is for because the big internet cable for our entire neighbourhood starts next to our house and they need to give it enough internet to make the people on the other side of the neighbourhood have 50Mb/s

(we now get 100Mb/'s download and 27Mb/'s upload)

1

u/Smithman Oct 26 '17

This is hilariously good. Nice work.

1

u/gooseyhonklin Oct 26 '17

Your Github README for this project is wonderful!

1

u/szabx Oct 26 '17

Great job. I am also working on a similar app, but in C/C++. Not getting the speed you pay for can get VERY frustrating

1

u/FISTofROSH Oct 26 '17

Sorry mate, the pessimists of reddit say you're dumb, you will fail etc etc etc. what a wonderful place to be, reddit, eh?

0

u/animejunkied Oct 25 '17

Nothing will change and they can just block you, you know?

0

u/[deleted] Oct 25 '17

[deleted]

1

u/[deleted] Oct 26 '17

I've got a Netgear Nighthawk (not too sure which model) w/ direct connection via ethernet to my device now which should be more than capable of handling my NBN connection, my home is less than a kilometer away from the nearest exchange so I, nor Optus have any clue of why my speeds are sporadic but no attempt of fixing it thus far.

0

u/[deleted] Oct 25 '17

[deleted]

1

u/[deleted] Oct 26 '17

It was being executed on a raspberry pi wireless but realised that could provide misleading data so I changed over to my spare desktop which has a network card capable of 250mbps+

Software was written in 60 lines of python

0

u/[deleted] Oct 25 '17

[deleted]

1

u/[deleted] Oct 26 '17

You think I haven't tried calling?

I've been calling every 2-3 weeks for months now. They're the second biggest provider in Australia and the only one that provides fibre to my address, i'm not about to move houses due to internet speed but something SHOULD be done to fix it...