Guest User

Untitled

a guest
Jan 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. for i in range(3):
  2. for num in range(0, 496, 5):
  3. if i == 1:
  4. requests.get('https://my-website.com?from={}&to={}'.format(num, num + 5))
  5.  
  6. # ............
  7. # separate conditions for 2 other urls in this case :(
  8.  
  9. urls = [<url1>, <url2>,....<url50>] # maybe each url has placeholders
  10.  
  11. for url in urls:
  12. # do some magic
Add Comment
Please, Sign In to add comment