r/learnpython • • Nov 27 '19

Black Friday hack with python

So I just finished my python script to monitor the price of my target gadget this holiday. It’s going to be heavily discounted soon but it will go to the fastest finger.

I’ve written a python script with BeautifulSoup. I’ve also set email and SMS alerts in the script 😂😂

Was just wondering if there’s any other person doing this for Black Friday and Fastest Finger deals.

Update: Long overdue but just thought I should add that I got the phone.

362 Upvotes

100 comments sorted by

View all comments

7

u/RedBlaze4 Nov 27 '19

How do you send the SMS ?

2

u/[deleted] Nov 27 '19

My provider (France) offers URL format API for free to use with my account. A bot has to connect to a URL with my logins and a message. And that is it

1

u/RedBlaze4 Nov 27 '19

Tu es chez quel opérateur ?

2

u/[deleted] Nov 27 '19

"Free".

go to your options and enable SMS notifications. Then, call this url

https://smsapi.free-mobile.fr/sendmsg?user=99999999&pass=cle_identification&msg=Hello%20World%20!

Reponses are :

  • 200 : SMS sent.

  • 400 : missing required args.

  • 402 : too many SMSs in a short time.

  • 403 : Service unenabled or incorrect user/pass.

  • 500 : Server error. Retry later.