Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Change lxml parser to html.parser #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion instascrape/scrapers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _separate_posts(self, source_data):
"""Separate the HTML and parse out BeautifulSoup for every post"""
post_soup = []

soup = BeautifulSoup(source_data, features="lxml")
soup = BeautifulSoup(source_data, features="html.parser")
anchor_tags = soup.find_all("a")
post_tags = [tag for tag in anchor_tags if tag.find(
"div", {"class": "eLAPa"})]
Expand Down