AcGW-RErCotWd
AcGW-RErCotWd
It seems like the error could be break down into 2 parts: 1, (line 172) **_soup_data.find("script", type="application/ld+json").text_** returns an empty string 2. (line 135) **_json.loads(soup_data.replace("'",'"'))_** takes in an empty string...
This issue could be solved by replacing the code on line 172 **_soup_data.find("script", type="application/ld+json").text_** with the following: **_re.findall('([\s\S]+?)', str(soup_data))[0]_** I am not sure why the original bs4 find statement does...
> > This issue could be solved by replacing the code on line 172 **_soup_data.find("script", type="application/ld+json").text_** with the following: **_re.findall('([\s\S]+?)', str(soup_data))[0]_** > > I am not sure why the original...
> Hmm, as far as I remember, I changed it in pull request #13 I think I'm starting to figure out where these errors come from. Did you install the...
> Hmm, as far as I remember, I changed it in pull request #13 I think I'm starting to figure out where these errors come from. Did you install the...
I tried to install the package using pip + git, but it fails because there is no setup.py in the library
It works when I re-install the package manually into the site-packages folder
> > > Hmm, as far as I remember, I changed it in pull request #13 I think I'm starting to figure out where these errors come from. Did you...
It is suggested that I leave this issue open until the installation from pip is correct
Traceback (most recent call last): File "***site-packages\pornhub\videos.py", line 247, in getVideos for possible_video in self._scrapLiVideos(self._loadPage(page_num=page, sort_by=sort_by)): File "***site-packages\pornhub\videos.py", line 80, in _scrapLiVideos return soup_data.find("div", class_="sectionWrapper").find_all("li", { "class" : re.compile(".*videoblock videoBox.*")...