remove https://

This commit is contained in:
samerbam 2023-06-07 15:04:28 -04:00
parent b568d337e3
commit fb52852eeb

View File

@ -16,9 +16,9 @@ def main(config):
with open(config.get('locations', 'output'), 'a') as f: #input=/config/fanfiction_file #output=/output/fanfiction_file with open(config.get('locations', 'output'), 'a') as f: #input=/config/fanfiction_file #output=/output/fanfiction_file
#/Users/sam/Desktop/workspace/FFFRssLinkGrabber/root/config.default/fanfiction_file #/Users/sam/Desktop/workspace/FFFRssLinkGrabber/root/config.default/fanfiction_file
for entry in feed.entries: for entry in feed.entries:
if entry.link not in lines: if entry.link.replace('https://', '') not in lines:
newworks += 1 newworks += 1
f.write(f"{entry.link}\n") f.write(f"{entry.link.replace('https://', '')}\n")
print(f"Added {newworks} works out of {len(feed.entries)} works to list.") print(f"Added {newworks} works out of {len(feed.entries)} works to list.")