WEBVTT

0
00:00.180 --> 00:02.250
Hey guys welcome to day 51

1
00:02.250 --> 00:05.400
of 100 Days of Code. Today

2
00:05.400 --> 00:09.090
we're going to be building a Complaining Twitter bot.

3
00:09.870 --> 00:12.810
I dunno about you, but I'm the sort of person who really,

4
00:12.810 --> 00:16.920
really hates dealing with customer service. Very often,

5
00:17.010 --> 00:20.070
if I buy a product and it doesn't work

6
00:20.100 --> 00:22.020
or it gets shipped to me broken,

7
00:22.440 --> 00:26.610
I will actually just put it down to bad luck to avoid having to deal with

8
00:26.630 --> 00:31.040
<v 1>customer service. I find it really hard calling up customer service,</v>

9
00:31.130 --> 00:32.300
<v 0>waiting on the line,</v>

10
00:32.690 --> 00:35.990
and it's just generally a really difficult experience for me.

11
00:36.740 --> 00:40.580
But what if it's something that really bothers you that you need to complain

12
00:40.580 --> 00:42.860
about in order to get it fixed? Well,

13
00:42.860 --> 00:47.860
this particular internet user was promised a internet speed from Comcast,

14
00:48.770 --> 00:53.770
so Xfinity in the US where he was meant to get 150 kilobits down and 10

15
00:55.190 --> 00:56.300
kilobits up.

16
00:56.780 --> 01:00.230
But what he found was that actually for a lot of the time,

17
01:00.230 --> 01:03.140
he wasn't getting the promised internet speeds.

18
01:03.470 --> 01:08.470
So he would do a speed test and then send his internet speeds by Twitter

19
01:08.810 --> 01:12.380
to Comcast to complain. Now,

20
01:12.410 --> 01:16.190
depending on who your internet provider is and how much you're paying,

21
01:16.220 --> 01:20.870
they tend to guarantee a minimum internet speed. Now,

22
01:20.930 --> 01:25.030
very often though, most people aren't testing their internet speeds every day.

23
01:25.110 --> 01:28.310
Just occasionally you feel like, oh, it feels a bit slow today.

24
01:28.310 --> 01:32.990
Or why is my download taking so long? If you look in your contract,

25
01:32.990 --> 01:37.990
you'll often find that guaranteed minimum speed in terms of megabits per second.

26
01:39.680 --> 01:44.000
For most people, it's probably going to be around 30 megabits or 60 megabits

27
01:44.240 --> 01:48.350
depending on how much you pay. Now for a lot of providers,

28
01:48.380 --> 01:53.380
they actually have a guarantee where if you can prove that the internet speed

29
01:53.540 --> 01:55.820
that you're getting is not what they promised,

30
01:56.060 --> 01:59.630
they'll actually give you your money back or even better

31
01:59.660 --> 02:01.190
they might try and fix it.

32
02:01.850 --> 02:06.850
So what this Comcast user did is he would test his internet speed and then tweet

33
02:07.280 --> 02:12.280
automatically to Comcast and complain that his internet speed is only 23 down

34
02:13.490 --> 02:17.780
5 up when he's paying 150 down 10 up. Now,

35
02:17.780 --> 02:21.680
the reason why people interact with Twitter in terms of customer service is

36
02:21.680 --> 02:22.760
because it's public.

37
02:22.790 --> 02:26.810
Everybody else can see your complaint to a particular company

38
02:27.080 --> 02:29.540
and if they're a large brand or a large company,

39
02:29.810 --> 02:32.930
then they tend to have a social media monitor.

40
02:32.990 --> 02:37.280
And often the customer service you get by complaining on Twitter can actually be

41
02:37.280 --> 02:40.160
even better than if you call them up or if you email them.

42
02:40.610 --> 02:44.180
One of the best customer service teams on Twitter is JetBlue.

43
02:44.540 --> 02:45.470
And on the internet,

44
02:45.470 --> 02:49.970
you've got lots of examples of people having a really great experience with the

45
02:49.970 --> 02:53.450
customer service team on Twitter from JetBlue, for example,

46
02:53.450 --> 02:57.020
this guy who was on a flight and his TV didn't work,

47
02:57.320 --> 02:59.590
and they actually ended up offering him, um,

48
02:59.680 --> 03:03.250
flight credits just on the spot for having a broken TV,

49
03:03.550 --> 03:06.220
all achieved using a couple of tweets. Now,

50
03:06.220 --> 03:09.430
recently I was even reading this article in time magazine

51
03:09.460 --> 03:13.510
where it's talking about 'Does tweeting at companies really work?' And very often,

52
03:13.540 --> 03:17.890
yes, it really does. And even when you look at this basically Python

53
03:17.950 --> 03:18.783
Twitter bot,

54
03:19.150 --> 03:23.950
you can see that he often got replies from Comcast and other users chipping in

55
03:23.950 --> 03:28.720
trying to get ahold of Comcast to fix their internet as well. Now,

56
03:28.810 --> 03:33.760
Comcast is probably quite well known to having pretty bad customer service.

57
03:34.120 --> 03:36.850
In fact, there's this post which I'll link to, um,

58
03:36.880 --> 03:40.630
where a journalist was trying to cancel their Comcast service

59
03:40.810 --> 03:45.810
and it took something like 5 or 10 minutes where the customer service guy was

60
03:46.300 --> 03:48.010
just trying really,

61
03:48.010 --> 03:53.010
really hard to not let them cancel even sometimes being quite condescending and

62
03:53.770 --> 03:56.860
a bit mean. But in this conversation,

63
03:56.860 --> 04:00.580
you actually hear the Comcast person saying we're the only people who can

64
04:00.580 --> 04:05.140
promise you a hundred megabit download speed. And in fact,

65
04:05.140 --> 04:07.060
when you look at the Comcast users tweets,

66
04:07.300 --> 04:09.490
you can see often that is actually not the case.

67
04:09.790 --> 04:13.030
So this can also bolster your argument when you want to leave an internet

68
04:13.030 --> 04:15.160
service or when you want to get money back

69
04:15.250 --> 04:17.800
or when you just want somebody to fix your internet speeds.

70
04:18.490 --> 04:21.700
The website we're going to be using is speedtest.net

71
04:21.730 --> 04:25.330
which is probably one of the best speed test websites out there.

72
04:25.780 --> 04:30.670
And what we're going to do is we're going to use our bots using selenium to

73
04:30.700 --> 04:31.780
press go.

74
04:32.110 --> 04:37.110
You can see it's going to start working out my download speeds and my upload

75
04:37.180 --> 04:41.890
speeds. Now this often takes anywhere between sort of half a minute to

76
04:41.920 --> 04:44.560
two minutes depending on your internet speed.

77
04:46.960 --> 04:48.190
But once it's done,

78
04:48.220 --> 04:53.220
then we'll end up with a result ID as well as our download speed and our upload

79
04:53.830 --> 04:54.550
speed.

80
04:54.550 --> 04:58.630
And you can then compare these against what you were promised by your internet

81
04:58.660 --> 05:03.370
service provider. And then we're going to tweet at our provider.

82
05:03.580 --> 05:08.530
So if it's Comcast or AT&T or in the UK, it could be BT or Sky,

83
05:08.530 --> 05:09.400
whatever it may be.

84
05:09.820 --> 05:13.660
And then we're going to tell them about our terrible internet speeds compared to

85
05:13.660 --> 05:17.290
what we pay for. So that's the goal.

86
05:18.370 --> 05:21.850
And when I run my internet speed Twitter bot, you can see

87
05:21.850 --> 05:22.870
this is what happens.

88
05:23.160 --> 05:28.160
<v 2>[inaudible],</v>

89
05:33.330 --> 05:35.970
<v 0>That's the goal. Once you're ready head over</v>

90
05:35.970 --> 05:38.310
to the next lesson and let's get started.