Différences entre les versions de « Alice Saunier »
(Page créée avec « ===El Code=== 10000011100001110110011010011110011111001111001010100000110110111011111101001010000011011001100001 100001111010001101001010000011001001100101010000011011001... ») |
|||
(12 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
+ | ===BOTGoGérald=== | ||
+ | |||
+ | import tweepy | ||
+ | import random | ||
+ | #importer tweet | ||
+ | #remplacer par api key et api secret key | ||
+ | auth = tweepy.OAuthHandler('cfsHkbkUVhMSukybw4EpZ52wg','5zSut2W75I1cC2sS5hUlRK740i3WZTfXHqok9yzbhleAweusKy') | ||
+ | |||
+ | auth.set_access_token('1361243598755401730-h3LnIITvL3x1XKDQHf1o2MwwIGHxmq', 'aXdVLphoynx1XozuYrlnkjxphlhKfoUivT1ViGcxnLlah') | ||
+ | api = tweepy.API(auth) | ||
+ | |||
+ | |||
+ | #api.update_status(status='tu veux un camembert?') | ||
+ | |||
+ | #I.user_timeline([user_id/screen_name][, since_id][, count][, max_id][, trim_user][, exclude_replies][, include_rts]) | ||
+ | |||
+ | #API.user_timeline([Gérald DARMANIN/@GDarmanin][, since_id][, 20][, max_id][, False][, exclude_replies][, include_rts]) | ||
+ | |||
+ | #tweets = api.user_timeline(@GDarmanin) | ||
+ | tweets = api.user_timeline('@GDarmanin',tweet_mode="extended",count=1) | ||
+ | #tweets = api.user_timeline('GDarmanin') | ||
+ | |||
+ | #for tweet in tweets: | ||
+ | #print(tweet) | ||
+ | #print(tweet.full_text) | ||
+ | |||
+ | #modification tweet | ||
+ | #listemoji | ||
+ | |||
+ | emoji1 = ['🚒 ' ,'👮 '] | ||
+ | |||
+ | emoji2 = ['🔞 ','💣 ','😏 ','😳 ','😋 ','😜 '] | ||
+ | |||
+ | emoji3 = ['✊💦 ','👋🍑 ','👌👈 ','🍌 ','🍆 '] | ||
+ | |||
+ | for tweet in tweets: | ||
+ | message = tweet.full_text.replace('policier', 'policier'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace('policiers', 'policiers'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace('pompier', 'pompier'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace('pompiers', 'pompiers'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace('gendarmes', 'gendarmes'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace('gendarme', 'gendarme'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message.replace("force de l'ordre", "force de l'ordre"+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) | ||
+ | message = message+random.choice(emoji2)+random.choice(emoji3) | ||
+ | |||
+ | print(message) | ||
+ | |||
+ | api.update_status(status=message) | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===Twitter=== | ||
+ | [[Fichier:Capture d’écran 2021-02-15 à 10.20.24.png]] | ||
+ | [[Fichier:Capture d’écran 2021-02-15 à 10.44.23.png]] | ||
+ | [[Fichier:Capture d’écran 2021-02-15 à 10.50.38.png]] | ||
+ | [[Fichier:Capture d’écran 2021-02-15 à 10.51.42.png]] | ||
+ | [[Fichier:Capture d’écran 2021-02-15 à 11.28.15.png]] | ||
+ | |||
+ | ===HTML=== | ||
+ | <source lang="python"> | ||
+ | <!doctype html> | ||
+ | <html> | ||
+ | <head> | ||
+ | <meta charset="utf-8"> | ||
+ | |||
+ | |||
+ | </head> | ||
+ | |||
+ | <body> | ||
+ | <h1>Site+++++++</h1> | ||
+ | <section> | ||
+ | <h2>Poeme1</h2> | ||
+ | <img src="image/al.jpg"> | ||
+ | <p>rien a voir avec les poemes super</p> | ||
+ | |||
+ | </section> | ||
+ | <section> | ||
+ | <h2>premier poeme</h2> | ||
+ | J'm l sp pst | ||
+ | L J c'st l s | ||
+ | L'lcl!st!mrt | ||
+ | J vs dnsr En Itl | ||
+ | Clss m l | ||
+ | Chn d l css | ||
+ | J vx t vr tt n yp | ||
+ | Q q j fss,svn glsst. | ||
+ | MESSAGE D'ALERTE, SORTEZ COUVERT! | ||
+ | Dns ss dbrs | ||
+ | L'=r d'n sr | ||
+ | J' rv q J'vs n!GQSK. | ||
+ | Mn plfnd ft, | ||
+ | mX dt,tds | ||
+ | L chmn tr .L ptn tmb | ||
+ | J tJAIjASK$ | ||
+ | </section> | ||
+ | <section> | ||
+ | <ol> | ||
+ | <li> | ||
+ | J vs dnsr En Itl</li> | ||
+ | <li> | ||
+ | J' rv q J'vs n!GQSK</li> | ||
+ | <li> <pre> | ||
+ | Mn plfnd ft L chmn tr .L ptn tmb | ||
+ | |||
+ | J vx t vr tt n yp | ||
+ | Q q j fss,svn glsst. | ||
+ | MESSAGE D'ALERTE, SORTEZ COUVERT! | ||
+ | Dns ss dbrs </pre></li> | ||
+ | |||
+ | </ol> | ||
+ | |||
+ | |||
+ | |||
+ | </section> | ||
+ | |||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | </source> | ||
+ | |||
+ | ===Poesieee=== | ||
+ | <source lang="python"> | ||
+ | import random | ||
+ | |||
+ | noms = ['soupe','pistou','alcool','Chien','casse','savon','deboires','MESSAGE','ALERTE','plafond','GQSK','s','chemin','pieton','mauX','a=our','soir'] | ||
+ | |||
+ | ponctuation = [ "," , "!" ] | ||
+ | |||
+ | nompropre = [ "Italie" , "Jul" ] | ||
+ | |||
+ | pronoms = ['moi', 'que', 'ses', 'que' , 'quoi'] | ||
+ | |||
+ | articles = ['le', 'la'] | ||
+ | |||
+ | pronomspersonels = ["j'","c'","je"] | ||
+ | |||
+ | verbe = ["aime","est","danser","calisse","veux","fusse","glissait","sortez","avais","ai reve","fuit","dit","tour","tombe","taaJAIjAaSK$"] | ||
+ | |||
+ | |||
+ | qualificatif = ['pistou','couvert'] | ||
+ | |||
+ | structure1 = random.choice(articles)+ ' ' + random.choice(noms) + ' ' + random.choice(verbe) + ' ' + random.choice(qualificatif) | ||
+ | |||
+ | print (structure1) | ||
+ | |||
+ | for i in range (10): | ||
+ | structure1 = random.choice(articles)+ ' ' + random.choice(noms) + ' ' + random.choice(verbe) + ' ' + random.choice(qualificatif) | ||
+ | print(structure1) | ||
+ | |||
+ | </source> | ||
+ | |||
===El Code=== | ===El Code=== | ||
− | + | 10000111100001110110011010011110011111001111001010100000110110111011111101001010000011011001100001 | |
− | + | 10000111101000110100111001011101110010000011001001100101010000011011001100001010000011000111100001111001111100111100101 | |
+ | |||
+ | ===scénario1=== | ||
+ | |||
+ | <source lang="python"> | ||
+ | #_*_ coding: utf-8 _*_ | ||
+ | #-Hey -Hey -Comment ça va ?-Comment ça va ? -Bien, mais je t'ai posé une question -Bien, mais je t'ai posé une question -Non c'est moi qui t'ai d'abord posé une question -Non c'est d'abord moi qui t'ai posé une question -Arrete de repeter ce que je dis - Arrete de repeter ce que je dis!!!! | ||
+ | import time | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | Intro = "Arrete de repeter ce que je dis" | ||
+ | data = Intro.split() | ||
+ | for temp in data: | ||
+ | time.sleep(1) | ||
+ | print temp | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | Intro = "Raaaa tu m'enerve" | ||
+ | data = Intro.split() | ||
+ | for temp in data: | ||
+ | time.sleep(1) | ||
+ | print temp | ||
+ | |||
+ | </source> | ||
+ | |||
+ | ===#tu veux des pates ? combien=== | ||
+ | <source lang="python"> | ||
+ | |||
+ | print("Tu veux des pates") | ||
+ | |||
+ | nbPates = raw_input() | ||
+ | nbPates = int(nbPates) | ||
+ | |||
+ | if nbPates == 10 : | ||
+ | for compteur in range(1, nbPates): | ||
+ | print(str(compteur)+ "pates ?") | ||
+ | print("C'est pas beacoup") | ||
+ | |||
+ | elif nbPates <20 : | ||
+ | for compteur in range(1, nbPates): | ||
+ | print(str(compteur)+"pates!") | ||
+ | print("oui c'est bien") | ||
+ | |||
+ | elif nbPates <60: | ||
+ | for compteur in range(1, nbPates): | ||
+ | print(str(compteur)+"pates") | ||
+ | print("c'est beaucoup de pates") | ||
+ | |||
+ | else : | ||
+ | print("aaah bon apetit") | ||
+ | |||
+ | </source> | ||
+ | |||
+ | ===s'enerver contre la machine=== | ||
+ | <source lang="python"> | ||
+ | import time | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | time.sleep(1) | ||
+ | |||
+ | print(Intro) | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | Intro = "Arrete de repeter ce que je dis" | ||
+ | data = Intro.split() | ||
+ | for temp in data: | ||
+ | time.sleep(1) | ||
+ | print temp | ||
+ | |||
+ | Intro = raw_input() | ||
+ | |||
+ | Intro = "Raaaa tu m'enerve" | ||
+ | data = Intro.split() | ||
+ | for temp in data: | ||
+ | time.sleep(1) | ||
+ | print temp | ||
+ | |||
+ | </source> |
Version actuelle datée du 29 mars 2021 à 09:57
BOTGoGérald
import tweepy import random
- importer tweet
- remplacer par api key et api secret key
auth = tweepy.OAuthHandler('cfsHkbkUVhMSukybw4EpZ52wg','5zSut2W75I1cC2sS5hUlRK740i3WZTfXHqok9yzbhleAweusKy')
auth.set_access_token('1361243598755401730-h3LnIITvL3x1XKDQHf1o2MwwIGHxmq', 'aXdVLphoynx1XozuYrlnkjxphlhKfoUivT1ViGcxnLlah') api = tweepy.API(auth)
- api.update_status(status='tu veux un camembert?')
- I.user_timeline([user_id/screen_name][, since_id][, count][, max_id][, trim_user][, exclude_replies][, include_rts])
- API.user_timeline([Gérald DARMANIN/@GDarmanin][, since_id][, 20][, max_id][, False][, exclude_replies][, include_rts])
- tweets = api.user_timeline(@GDarmanin)
tweets = api.user_timeline('@GDarmanin',tweet_mode="extended",count=1)
- tweets = api.user_timeline('GDarmanin')
- for tweet in tweets:
#print(tweet) #print(tweet.full_text)
- modification tweet
- listemoji
emoji1 = ['🚒 ' ,'👮 ']
emoji2 = ['🔞 ','💣 ','😏 ','😳 ','😋 ','😜 ']
emoji3 = ['✊💦 ','👋🍑 ','👌👈 ','🍌 ','🍆 ']
for tweet in tweets:
message = tweet.full_text.replace('policier', 'policier'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace('policiers', 'policiers'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace('pompier', 'pompier'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace('pompiers', 'pompiers'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace('gendarmes', 'gendarmes'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace('gendarme', 'gendarme'+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message.replace("force de l'ordre", "force de l'ordre"+random.choice(emoji1)+random.choice(emoji2)+random.choice(emoji3)) message = message+random.choice(emoji2)+random.choice(emoji3)
print(message)
api.update_status(status=message)
HTML
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>Site+++++++</h1>
<section>
<h2>Poeme1</h2>
<img src="image/al.jpg">
<p>rien a voir avec les poemes super</p>
</section>
<section>
<h2>premier poeme</h2>
J'm l sp pst
L J c'st l s
L'lcl!st!mrt
J vs dnsr En Itl
Clss m l
Chn d l css
J vx t vr tt n yp
Q q j fss,svn glsst.
MESSAGE D'ALERTE, SORTEZ COUVERT!
Dns ss dbrs
L'=r d'n sr
J' rv q J'vs n!GQSK.
Mn plfnd ft,
mX dt,tds
L chmn tr .L ptn tmb
J tJAIjASK$
</section>
<section>
<ol>
<li>
J vs dnsr En Itl</li>
<li>
J' rv q J'vs n!GQSK</li>
<li> <pre>
Mn plfnd ft L chmn tr .L ptn tmb
J vx t vr tt n yp
Q q j fss,svn glsst.
MESSAGE D'ALERTE, SORTEZ COUVERT!
Dns ss dbrs </pre></li>
</ol>
</section>
</body>
</html>
Poesieee
import random
noms = ['soupe','pistou','alcool','Chien','casse','savon','deboires','MESSAGE','ALERTE','plafond','GQSK','s','chemin','pieton','mauX','a=our','soir']
ponctuation = [ "," , "!" ]
nompropre = [ "Italie" , "Jul" ]
pronoms = ['moi', 'que', 'ses', 'que' , 'quoi']
articles = ['le', 'la']
pronomspersonels = ["j'","c'","je"]
verbe = ["aime","est","danser","calisse","veux","fusse","glissait","sortez","avais","ai reve","fuit","dit","tour","tombe","taaJAIjAaSK$"]
qualificatif = ['pistou','couvert']
structure1 = random.choice(articles)+ ' ' + random.choice(noms) + ' ' + random.choice(verbe) + ' ' + random.choice(qualificatif)
print (structure1)
for i in range (10):
structure1 = random.choice(articles)+ ' ' + random.choice(noms) + ' ' + random.choice(verbe) + ' ' + random.choice(qualificatif)
print(structure1)
El Code
10000111100001110110011010011110011111001111001010100000110110111011111101001010000011011001100001 10000111101000110100111001011101110010000011001001100101010000011011001100001010000011000111100001111001111100111100101
scénario1
#_*_ coding: utf-8 _*_
#-Hey -Hey -Comment ça va ?-Comment ça va ? -Bien, mais je t'ai posé une question -Bien, mais je t'ai posé une question -Non c'est moi qui t'ai d'abord posé une question -Non c'est d'abord moi qui t'ai posé une question -Arrete de repeter ce que je dis - Arrete de repeter ce que je dis!!!!
import time
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
Intro = "Arrete de repeter ce que je dis"
data = Intro.split()
for temp in data:
time.sleep(1)
print temp
Intro = raw_input()
Intro = "Raaaa tu m'enerve"
data = Intro.split()
for temp in data:
time.sleep(1)
print temp
#tu veux des pates ? combien
print("Tu veux des pates")
nbPates = raw_input()
nbPates = int(nbPates)
if nbPates == 10 :
for compteur in range(1, nbPates):
print(str(compteur)+ "pates ?")
print("C'est pas beacoup")
elif nbPates <20 :
for compteur in range(1, nbPates):
print(str(compteur)+"pates!")
print("oui c'est bien")
elif nbPates <60:
for compteur in range(1, nbPates):
print(str(compteur)+"pates")
print("c'est beaucoup de pates")
else :
print("aaah bon apetit")
s'enerver contre la machine
import time
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
time.sleep(1)
print(Intro)
Intro = raw_input()
Intro = "Arrete de repeter ce que je dis"
data = Intro.split()
for temp in data:
time.sleep(1)
print temp
Intro = raw_input()
Intro = "Raaaa tu m'enerve"
data = Intro.split()
for temp in data:
time.sleep(1)
print temp