Advertisement
Guest User

Untitled

a guest
Apr 8th, 2019
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. import requests
  2. import os
  3. import random
  4. import string
  5. from bs4 import BeautifulSoup
  6.  
  7.  
  8. chars = (['1','2','3','4','5','6','7','8','9'])
  9.  
  10. mylist = (['a','b','c','d','e','f','g','h','i','j','f','k','z','d','e','f','g','h','i','j','f','k','z','d','a','b','c','d','e','f','g','h','i','j','f','k','z','d','e','f','g','h','i','j','f','k','z','d'])
  11.  
  12. url = 'https://poshmark.com/signup'
  13.  
  14. https_proxys = (["https://10.10.1.11:1080","https://137.53.216.209:443","https://137.53.216.209:443", "https://35.235.86.137:3128", "https://104.155.40.117:3128", "https://194.15.108.191:8888", "https://178.128.12.231:3128", "https://64.154.91.203:53281", "https://160.2.52.234:8080", "https://174.136.111.210:8080", "https://35.222.100.222:3128", "https://68.177.70.254:61526", "https://64.91.248.243:3128", "https://64.17.30.238:63141", "https://40.114.109.214:3128", "https://104.236.48.178:8080", "https://35.245.78.255:3128", "https://104.236.47.73:8080", "https://159.89.83.140:80", "https://18.144.33.223:80","https://104.43.244.233:80", "https:18.223.97.220:80"])
  15.  
  16. https_proxy = random.choice(https_proxys)
  17.  
  18. proxyDict = {"https" : https_proxy}
  19.  
  20. r = requests.get(url, headers=headers, proxies=proxyDict)
  21.  
  22. def poshmark_login():
  23.  
  24. email = ''.join(random.choice(mylist) for i in range(8)) + ''.join(random.choice(chars) for i in range(4)) + '@gmail.com'
  25. random.shuffle(chars)
  26. random.shuffle(mylist)
  27. password = 'fgsadhyfthy4565443'
  28. first_name = 'Joanads'
  29. last_name = 'Jsdahfuedsa'
  30. username = ''.join(random.choice(mylist) for i in range(8)) + ''.join(random.choice(chars) for i in range(4))
  31. random.shuffle(mylist)
  32. random.shuffle(chars)
  33.  
  34. requests.post(r, allow_redirects=False, data={
  35. 'sign_up_form[first_name]': first_name,
  36. 'sign_up_form[last_name]': last_name,
  37. 'sign_up_form[email]': email,
  38. 'sign_up_form[username]': username,
  39. 'sign_up_form[password]': password,
  40. })
  41.  
  42. print(f"sending username {username} ,password {password} ,email {email} ,first_name {first_name} and last_name {last_name}")
  43.  
  44. while True:
  45. poshmark_login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement