minefields.py 296 B

1234567891011121314
  1. from bs4 import BeautifulSoup as bs
  2. import requests
  3. import time
  4. for i in range(400):
  5. resp = requests.get(f'http://62.173.140.174:16024/?balloon={i}')
  6. soup = bs(resp.text.lower(), 'html.parser')
  7. if soup.h1:
  8. print(soup.h1.text, i)
  9. else:
  10. print(i)
  11. time.sleep(1)