Contenu | Rechercher | Menus

Annonce

Ubuntu 16.04 LTS
Commandez vos DVD et clés USB Ubuntu-fr !

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

nombre réponses : 25

#0 Re : -1 »  Touche "FN" pour la luminosité » Le 14/02/2017, à 22:18

chris_wafer
Réponses : 27

Des nouvelles?

Merci.

#1 Re : -1 »  Touche "FN" pour la luminosité » Le 14/02/2017, à 23:30

chris_wafer
Réponses : 27

Comment modifier la luminosité alors?

Je suis en cours d'installation de LinuxMint pour voir si ça change quelquechose.

#2 Re : -1 »  Touche "FN" pour la luminosité » Le 15/02/2017, à 09:18

chris_wafer
Réponses : 27

Ca marche avec le dernier LINUXMINT et le tutoriel suivant : https://korben.info/touches-fn-luminosi … t-pas.html

#3 -1 »  Un expert de CURL et COOKIES! Scripts identiques, pas même résultat! » Le 09/03/2017, à 10:53

chris_wafer
Réponses : 0

Bonjour,

Vous pouvez trouver 2 scripts en pièce jointe. La seule différence est que je gère les cookies directement dans la requête (Script_SANS_FichierCookies.sh) ou via un fichier (Script_AVEC_FichierCookies.sh).
Or, le résultat n'est pas le même avec le fichier Script_AVEC_FichierCookies.sh comme si mes POST n'était pas validé, car il n'avait pas les bons cookies.

Voici les 2 scripts :

Script_SANS_FichierCookies.sh

#!/bin/sh

input()
{
	echo "Entre le Login sur le site LeBonCoin"
	read LOGIN

	echo "Entre le Pass sur le site LeBonCoin"
	read PASS

	echo "Entre le Pseudo A Afficher"
	read PSEUDO
}

creerAnnonce2()
{
	find "/tmp" -iname "Sortie*.html" -exec rm "{}" \;
	find "/tmp" -iname "cookies*.txt" -exec rm "{}" \;

	lindexIN=0
	lindexOUT=0


	


###################
# Afficher page
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050003775$_pn:3%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/index.html' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050003775$_pn:3%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Connexion
##################

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/verify_login/0?s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data "st_username=${LOGIN}&st_passwd=${PASS}" \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/main/0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: token_expire=1489055351; cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/list/0?o=0&fm=1' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Deposer annonce
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/load/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

####################
# POST VRAIMENT
####################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/verify/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050359709$_pn:7%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=1-24686511; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: multipart/form-data; boundary=---------------------------153794434810136349831074716946' --data-binary $'-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nPlaces Outrage\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nPlaces outrage \xe0 vendre. Concert bient\xf4t.\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n37\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nBordeaux\xa033000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nBordeaux\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.83885\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.58115\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\n${LOGIN}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\n${MAIL}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone_hidden"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------153794434810136349831074716946--\r\n' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/preview/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050359709$_pn:7%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=1-24686511; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"
}

input
creerAnnonce2

Script_AVEC_FichierCookies.sh

#!/bin/sh

input()
{
	echo "Entre le Login sur le site LeBonCoin"
	read LOGIN

	echo "Entre le Pass sur le site LeBonCoin"
	read PASS

	echo "Entre le Pseudo A Afficher"
	read PSEUDO
}

creerAnnonce3()
{
	find "/tmp" -iname "Sortie*.html" -exec rm "{}" \;
	find "/tmp" -iname "cookies*.txt" -exec rm "{}" \;

	lindexIN=0
	lindexOUT=0


	


###################
# Afficher page
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/index.html' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Connexion
##################

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/verify_login/0?s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data "st_username=${LOGIN}&st_passwd=${PASS}" \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/main/0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/list/0?o=0&fm=1' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Deposer annonce
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/load/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

####################
# POST VRAIMENT
####################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/verify/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: multipart/form-data; boundary=---------------------------153794434810136349831074716946' --data-binary $'-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nPlaces Outrage\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nPlaces outrage \xe0 vendre. Concert bient\xf4t.\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n37\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nBordeaux\xa033000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nBordeaux\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.83885\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.58115\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\n${LOGIN}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\n${MAIL}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone_hidden"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------153794434810136349831074716946--\r\n' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/preview/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"
}

input
creerAnnonce3

J'ai cherché pendant plusieurs jours mais je ne trouve pas. Je désespère.

Merci pour votre aide.

#4 -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 10:41

chris_wafer
Réponses : 15

Bonjour,

J'aimerais faire un script en utilisant par-exemple curl qui me permette de me connecter au site LeBonCoin et de déposer une annonce pour le moment sans photo.
Y aurait un expert qui pourrait m'aider?

Merci.

#5 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 10:51

chris_wafer
Réponses : 15

Même en utilisant le soutils du développeur sous FIREFOX, je ne vois pas trop ce que je dois faire. Merci.

#6 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 12:41

chris_wafer
Réponses : 15

Mais ça marche pour gérer les cookies?
Car curl a l'air très bien.

#7 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 17:06

chris_wafer
Réponses : 15

Tu pourrais faire un exemple avec leBonCoin car je ne vois pas comment je vais faire. Merci.

#8 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 22:11

chris_wafer
Réponses : 15

Lorsque j’utilise l’outil de développement du FIREFOX, j'ai ça :

curl 'https://www.leboncoin.fr/' -H 'Host: www.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:86$_ss:1$_st:1484602398969$_pn:1%3Bexp-session$ses_id:1484600598969%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; cookieFrame=2; uid=W9Bf7Mteppo2YOIXL5qpWdxGokvfyIf4UO4d3%2FoAdhU%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; layout=0; oas_ab=a; ADventoriAlreadyTargeted_Ooshop=1' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0'

Qu'est ce que je dois garder?

#9 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 22:42

chris_wafer
Réponses : 15

J'ai essayé ça mais ça ne marche pas :

#!/usr/bin/perl

use strict;
use warnings;
use WWW::Mechanize;

my $bot = WWW::Mechanize->new(
              agent => 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.6) Gecko/2009020619 Gentoo Iceweasel/3.0.6 '
                        );

my $response = $bot->get('https://compteperso.leboncoin.fr');


$bot->form_name('loginform');
$bot->field( st_username => 'XXXXX' );
$bot->field( st_passwd => 'XXXXX' );

$bot->submit();

Une idée?

#10 Re : -1 »  Poster une annonce automatiquement » Le 16/01/2017, à 23:05

chris_wafer
Réponses : 15

J'ai fait ça aussi en bash, mais ça marche pas :

curl 'https://compteperso.leboncoin.fr/' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1'

curl 'https://compteperso.leboncoin.fr/store/verify_login/0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data 'st_username=xxxxxxxxxx&st_passwd=xxxxxxxxxx'

De l'aide???

#11 Re : -1 »  Poster une annonce automatiquement » Le 17/01/2017, à 10:59

chris_wafer
Réponses : 15

Personne peut vraiment m'aider?
Un expert curl?

#12 Re : -1 »  Poster une annonce automatiquement » Le 17/01/2017, à 23:08

chris_wafer
Réponses : 15

Merci pour ces informations.
Mais justement quel est la commande pour se connecter? Merci.

#13 Re : -1 »  Poster une annonce automatiquement » Le 18/01/2017, à 20:43

chris_wafer
Réponses : 15

Coucou,

Je vais peut-pêtre abusé mais tu pourrais me donner un exmple où j'aurais juste à remplacer mon login et mon mot de passe?
Car j'avoue que je suis complètement perdu.

Merci.

#14 Re : -1 »  Poster une annonce automatiquement » Le 29/01/2017, à 18:29

chris_wafer
Réponses : 15

Un petit UP pour avoir une grosse aide... je n'avance pas... Merci.

#15 Re : -1 »  Poster une annonce automatiquement » Le 28/02/2017, à 23:10

chris_wafer
Réponses : 15

Je progresse, je progresse, je suis arrivé à me logguer!!!

Mais quand je veux poster une nouvelle annonce avec MECHANISE, il me répond : "301 Moved Permanently".

Quelqu'un peut me dire où il y a on erreur, car je patoge là... Merci.

Voici mon code :

 
#!/usr/bin/perl
 
use strict; use warnings;
use WWW::Mechanize;
use HTML::Tree;
use Time::HiRes qw(gettimeofday);
use IO::Handle;
 
#-----------------------------------------------------
my $lLogin = 'MonMail';
my $lPass = 'MonPass';
my $lAlias = 'MonAlias';
my $lPhone = 'MonPhone';
#-----------------------------------------------------
 
my $url = "";
my $return = "";
my $fichier = "";
my $bot = WWW::Mechanize->new(
  agent => "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0",
  timeout     => 3,
  autocheck   => 1,       # check success of each query
  stack_depth => 0,       # no keeping history
  keep_alive  => 50,      # connection pool
);
$bot->stack_depth(0);
 
open my $debugfile, '>traffic.txt';
$debugfile->autoflush(1);
 
$bot->add_handler( request_send => sub {
    my $cur_time = gettimeofday();
    my $req = shift;
    print $debugfile "\n$cur_time === BEGIN HTTP REQUEST ===\n";
    print $debugfile $req->dump();
    print $debugfile "\n$cur_time ===   END HTTP REQUEST ===\n";
    return
  }
);
$bot->add_handler( response_header => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    print $debugfile "\n$cur_time === GOT RESPONSE HDRS ===\n";
    print $debugfile $res->dump();
    return
  }
);
$bot->add_handler( response_data => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    my $content_length = length($res->content);
    print $debugfile "$cur_time === Got response data chunk resp size = $content_length ===\n";
    return
  }
);
$bot->add_handler( response_done => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    print $debugfile "\n$cur_time === BEGIN HTTP RESPONSE ===\n";
    print $debugfile $res->dump();
    print $debugfile "\n===   END HTTP RESPONSE ===\n";
    return
  }
);
 
unlink 'cookies.txt';
 
$bot->cookie_jar(
        HTTP::Cookies->new(
            file           => "cookies.txt",
            autosave       => 1,
            ignore_discard => 1,
        )
);
 
 
sub AjouterAnnonces()
{
	$url = "https://compteperso.leboncoin.fr/store/verify_login";
	$bot->get($url);
 
	$return=$bot->form_name('loginform');
	$return=$bot->field( st_username => $lLogin );
	$return=$bot->field( st_passwd => $lPass );
	$return=$bot->submit();
 
	$url = "https://compteperso.leboncoin.fr/store/verify_login";
	$bot->get($url);
 
	$url = "https://www.leboncoin.fr/ai?ca=12_s";
	$return=$bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie01.html";
    print "01\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);
    # ===================================================================
 
	my $id_annonce=$return->base;
	$id_annonce =~ s/\?.*$//;
	$id_annonce =~ s/^.*\///;
 
	$url="https://www.leboncoin.fr/ai/verify/$id_annonce";
	$return = $bot->post(
	  		$url,
	  		[ 'check_type_diff' => '0',
	    		'category' => '35',
	    		'company_ad' => '0',
	    		'type' => '5',
	    		'subject' => 'Places concert Muse',
	    		'brand' => '',
				'regdate' => '',
				'mileage' => '',
				'fuel' => '',
				'gearbox' => '',
				'cubic_capacity' => '',
				'real_estate_type' => '',
				'furnished' => '',
				'square' => '',
				'rooms' => '',
				'energy_rate' => '',
				'ges' => '',
				'capacity' => '',
				'swimming_pool' => '',
				'bedrooms' => '',
				'clothing_type' => '',
				'clothing_st' => '',
				'shoe_type' => '',
				'shoe_size' => '',
				'baby_age' => '',
				'jobcontract' => '',
				'jobfield' => '0',
				'jobduty' => '0',
				'jobexp' => '0',
				'jobstudy' => '0',
				'jobtime' => '1',
				'animal_offer_nature' => '',
				'animal_race' => '',
				'animal_age' => '',
				'animal_litter' => '',
				'animal_litter_number' => '',
				'animal_identification' => '',
				'datepicker_begin_date' => '',
				'availability_begin_date' => '',
				'datepicker_end_date' => '',
				'availability_end_date' => '',
				'availability_price' => '',
				'price_min' => '',
				'price_max' => '',
				'body' => 'Vend places concert Muse. A Bordeaux.',
				'custom_ref' => '',
				'price' => '90',
				'charges_included' => '',
				'fai_included' => '',
				'image0' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image1' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image2' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image3' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image4' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image5' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image6' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image7' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image7' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image8' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image9' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'location_p' => 'Bordeaux 33000',
				'zipcode' => '33000',
				'city' => 'Bordeaux',
				'region' => '2',
				'dpt_code' => '',
				'location_p' => '33',
				'address' => '',
				'meeting_point_id' => '',
				'accept_localisation' => 'on',
				'latitude' => '44.83885',
				'longitude' => '-0.58115',
				'geo_source' => 'city',
				'geo_provider' => 'lbc',
				'adreply_type' => '1',
				'adreply_redirect' => '',
				'name' => "$lAlias",
				'email' => "$lLogin",
				'phone' => "$lPhone",
				'phone_hidden' => '1',
				'no_salesmen' => '1'
 
	  		],
	  	'Content_Type' => 'form-data'
	  	);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie02.html";
    print "02\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/preview/$id_annonce";
	$return = $bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie03.html";
    print "03\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/create/$id_annonce";
	$return = $bot->post(
	  		$url,
	  		[ 'category' => '33',
	  		  'city' => 'Bordeaux',
	  		  'accept_rule' => '1',
	  		  'create' => 'Valider mon annonce',
	  		  'create2' => 'Valider',
	  		  'category' => '35',
	  		  'category' => '35',
	  		  'category' => '35'
 
	  		],
	  	'Content_Type' => 'form-data'
	  	);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie04.html";
    print "04\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/confirm_no_pay/$id_annonce";
	$return = $bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie05.html";
    print "05\n";	
    print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
}
 
AjouterAnnonces();

#16 Re : -1 »  [Résolu] Curl et connexion » Le 07/02/2017, à 23:20

chris_wafer
Réponses : 12

Une idée?

#17 Re : -1 »  [Résolu] Curl et connexion » Le 17/02/2017, à 04:14

chris_wafer
Réponses : 12

J'y arrive à peu près avec le bon coin.
Mais j'arrive à la commande suivante :

curl --silent \
-b /tmp/cookies \
-c /tmp/cookies \
'https://www.leboncoin.fr/ai/verify/0' \
-H 'Host: www.leboncoin.fr' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' \
--compressed \
-H 'Referer: https://www.leboncoin.fr/ai/form/0' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'Content-Type: multipart/form-data; boundary=---------------------------1855287202331431558583870453' \
--data-binary $'-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nVend places concert Muse\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nJe vends des places pour le concert. A venir chercher sur place.\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n45\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nCenon\xa033150\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33150\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nCenon\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.8583\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.53053\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\nmon_pseudo\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="siren"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\ntutu@toto.com\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------1855287202331431558583870453--\r\n'

D'où vient ce numéro 1855287202331431558583870453 dans binary ?

#18 Re : -1 »  [Résolu] Curl et connexion » Le 17/02/2017, à 14:19

chris_wafer
Réponses : 12

Quelqu'un peut m'aider?

#19 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 15/01/2017, à 19:03

chris_wafer
Réponses : 18

Par contre, si j'éteinds l'enceinte, le son ne revient pas sur le PC, on peut faire un truc automatique.

Voici ma configuration :

******************************
/etc/bluetooth/audio.conf
******************************
[General]
        Enable=Source,Sink,Headset,Gateway,Control,Socket,Media #NDR socket semble suffisant
[Headset]
        HFP=true
        AutoConnect=true #NDR J'avais envie que ça démarre tout seul sans que je fasse des manips à chaque fois
[A2DP]
        SBCSources=1
        MPEG12Sources=0



******************************
/etc/asound.conf 
******************************

pcm.btheadset {
    type bluetooth
    device XX:XX:XX:XX:XX:XX #NDR l'adresse MAC de l'enceinte
    profile "auto"
}


   
******************************
/etc/pulse/default.pa

#set-default-sink output
load-module module-alsa-sink device=btheadset
******************************

Vous voyez un truc bizarre?

Merci.

#20 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 15/01/2017, à 20:10

chris_wafer
Réponses : 18

Je ne connaisais pas, je vais installer.
Et ta configuration bluetooth est la même que la mienne?

Je voudrais que cet indicateur se lance sur toutes les sessions comment faire?

Merci.

#21 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 16/01/2017, à 10:29

chris_wafer
Réponses : 18

Il faut pas dire de quoi en quoi ça siwtche?

Au début y a ça :

load-module module-alsa-sink device=btheadset

ça pose pas de problème?

#22 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 16/01/2017, à 12:42

chris_wafer
Réponses : 18

Dès que j'allume l'enceinte, il doit switcher, c'est ça?
Et dès que j'éteinds, il doit switcher, c'est ça?

Il faut que je désctives "Sound Switcher Indicator "?

#23 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 16/01/2017, à 12:57

chris_wafer
Réponses : 18

Je ne vois pas où tu configures la connexion automatique à l'enceinte (via le gestionnaire bluetooth).
Fais moi une capture STP.

#24 Re : -1 »  Configurer haut parleur bluetooth! A l'aide! » Le 29/01/2017, à 18:30

chris_wafer
Réponses : 18

Via ma configuration décrite plus haut; si je n'ai pas l'enceinte Bluetooth activé, l'initialisation de pulseaudio échoue et je n'ai pas de son.
Comment faire?