Skip to content

Commit

Permalink
Update internet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo authored Jul 29, 2024
1 parent 199c9e2 commit 01d70e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lollms/internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def scrape_and_save(url, file_path:str|Path=None, use_selenium=False, follow_lin

# Save scraped texts to the markdown file
if file_path:
with open(file_path, 'w') as md_file:
with open(file_path, 'w', encoding="utf8", errors='ignore') as md_file:
for text in results['texts']:
md_file.write(text + '\n\n')
print(f"Texts saved to {file_path}")
Expand Down

0 comments on commit 01d70e6

Please sign in to comment.