import feedparser
import time
upwork_rss_url = 'https://www.upwork.com/ab/feed/jobs/rss?sort=recency&user_location_match=1&paging=0%3B10&api_params=1&q=&securityToken=6da89e82d7da8ae885411b27044affdc3a71a8f6b7bd5867c9b62e1c7f0ce3cb7ba1097847ae92d8a180517cfb5636ced80f02cd6ca5d0327e553c48dd37da38&userUid=646985892418633728&orgUid=646985892422828033'
sleeptime = 3 # seconds
old_job = set()
while True:
no_new_job = True
feeds = feedparser.parse(upwork_rss_url)
for a in feeds.entries:
new_job = a['title']
if new_job not in old_job:
print('new job found:\t{}'.format(new_job))
old_job.update([new_job])
no_new_job = False
if no_new_job: print('no new job...')
time.sleep(sleeptime)
url = 'https://cars.av.by/subaru'
response = requests.get(url,headers=headers)
response.encoding = response.apparent_encoding
print(response.text)
replace("1 из ",""))