Advertisement
Ksenia_C

Untitled

Jan 26th, 2022
1,095
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import urllib.request  # the lib that handles the url stuff
  2.  
  3. minprice = 1000000
  4. webUrl = urllib.request.urlopen(f'https://realty.yandex.ru/moskva_i_moskovskaya_oblast/snyat/kvartira/tryohkomnatnaya/?utm_source=tenant_landing_arenda&yandexRent=YES&priceMax={minprice}')
  5. print("result code: ", webUrl.getcode())
  6.  
  7. data = webUrl.read().decode('utf8')
  8. print(data)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement