remove https://

main
samerbam 1 year ago
parent b568d337e3
commit fb52852eeb

@ -16,9 +16,9 @@ def main(config):
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
for entry in feed.entries:
if entry.link not in lines:
if entry.link.replace('https://', '') not in lines:
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.")

Loading…
Cancel
Save