Guest User

Untitled

a guest
Aug 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. response = requests.get(url.format("set"))
  2. print(response.status_code)
  3. response = requests.get(url.format("map"))
  4. print(response.status_code)
  5. response = requests.get(url.format("list"))
  6. print(response.status_code)
  7. response = requests.get(url.format("vector"))
  8. print(response.status_code)
  9. response = requests.get(url.format("string"))
  10. print(response.status_code)
  11.  
  12. for word in fIn :
  13. response = requests.get(url.format(word))
  14. if(response.status_code == 200):
  15. print "OK"
  16. else:
  17. print(response.status_code)
  18. print "Error"
  19. print word
  20.  
  21. from lxml import html
  22.  
  23. import requests
  24.  
  25. fOut = open("descriptions.txt","w")
  26.  
  27. with open('dummyWords.txt') as fIn:
  28. for word in fIn :
  29. print word
  30. response = requests.get(url.format(word))
  31. if(response.status_code == 200):
  32. print "OK"
  33. else:
  34. print(response.status_code)
  35. print(word)
  36.  
  37. with open('dummyWords.txt') as fIn:
  38. for word in map(str.strip, fIn) :
  39.  
  40. cmd = urllib.quote(cmds[i])
Add Comment
Please, Sign In to add comment