Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saraswatpuneet committed Sep 2, 2023
1 parent afb83e3 commit 00d1b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion querent/collectors/webscaper/web_scraper_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def scrape_website(self, website_url: str):
async with ClientSession(connector=TCPConnector(ssl=False)) as session:
async with session.get(website_url) as response:
content = await response.text()
max_length = len(" ".join(content.split(" ")[:600]))
max_length = len(content)
return CollectedBytes(
data=content[:max_length], file=None, error=None
)
Expand Down

0 comments on commit 00d1b86

Please sign in to comment.