Skip to content
Extraits de code Groupes Projets
Valider c0b689b4 rédigé par Loïc Wikle DUBARD's avatar Loïc Wikle DUBARD
Parcourir les fichiers

shitpostbot hashtag stripping

parent 5428186c
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -62,7 +62,7 @@ class Shitpostbot5000(object): ...@@ -62,7 +62,7 @@ class Shitpostbot5000(object):
self.ctx = ssl.create_default_context() self.ctx = ssl.create_default_context()
self.ctx.check_hostname = False self.ctx.check_hostname = False
self.ctx.verify_mode = ssl.CERT_NONE self.ctx.verify_mode = ssl.CERT_NONE
urllib.request.urlretrieve(random.choice(self.getlinks(hashtag, 'https://www.instagram.com/explore/tags/' + hashtag + '/')), 'insta_random.jpg') urllib.request.urlretrieve(random.choice(self.getlinks(hashtag, 'https://www.instagram.com/explore/tags/' + hashtag.strip() + '/')), 'insta_random.jpg')
return 'insta_random.jpg' return 'insta_random.jpg'
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter