Skip to content

Commit

Permalink
- fixing the 403 error (hopefully)
Browse files Browse the repository at this point in the history
- disabled logging
  • Loading branch information
EchterAlsFake committed Jul 6, 2024
1 parent a50f615 commit e256e69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="spankbang_api",
version="1.0",
version="1.0.1",
packages=find_packages(),
install_requires=[
"requests", "lxml", "bs4", "eaf_base_api"
Expand Down
6 changes: 6 additions & 0 deletions spankbang_api/modules/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

cookies = {
"age_pass": "1",
"pg_interstitial_v5": "1",
"pg_pop_v5": "1",
"player_quality": "1080",
"preroll_skip": "1",
"backend_version": "main",
"videos_layout": "four-col"
}

PATTERN_RESOLUTION = re.compile(r'(\d+p)\.mp4')
Expand Down
2 changes: 1 addition & 1 deletion spankbang_api/spankbang_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
except (ImportError, ModuleNotFoundError):
from .modules.consts import *

setup_api(True)
base_qualities = ["240p", "320p", "480p", "720p", "1080p", "4k"]


class Video:
def __init__(self, url):
self.url = url # Needed for Porn Fetch
self.html_content = Core().get_content(url, headers=headers, cookies=cookies).decode("utf-8")
self.soup = BeautifulSoup(self.html_content, "lxml")
self.extract_script_2()
Expand Down

0 comments on commit e256e69

Please sign in to comment.