mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
fixed url
This commit is contained in:
parent
adae4689a3
commit
eb50c256c3
1 changed files with 7 additions and 1 deletions
|
|
@ -157,13 +157,19 @@ class C2CScrape:
|
|||
|
||||
# timer to check for new episodes every 12 hours
|
||||
def timer(self):
|
||||
|
||||
#reset base url
|
||||
self.url = 'https://zfirelight.blogspot.com/'
|
||||
original_url = self.url
|
||||
try:
|
||||
# Run our core operations
|
||||
self.process_episode()
|
||||
self.get_older_posts()
|
||||
print(f'Episodes downloaded: {self.episodes_downloaded}')
|
||||
finally:
|
||||
self.url = original_url
|
||||
self.last_download = None
|
||||
self.last_download_link = None
|
||||
self.episodes_downloaded = 0
|
||||
# Ensure timer restarts even if there's an error
|
||||
print("waiting 12 hours")
|
||||
threading.Timer(43200, self.timer).start() # 43200 sec = 12 hours
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue