Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	hqporner_api/api.py
  • Loading branch information
EchterAlsFake committed Jan 10, 2025
2 parents 886d50f + d00d1ef commit 5624ad7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: HQPorner API test

permissions:
contents: read
pull-requests: write

on:
push:
branches:
- master
- async
pull_request:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at 00:00 UTC
Expand All @@ -19,7 +26,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest requests lxml bs4 git+https://github.com/EchterAlsFake/eaf_base_api
pip install pytest
pip install .
- name: Test with pytest
run: |
pytest
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

<div align="center">
<a href="https://pepy.tech/project/hqporner_api"><img src="https://static.pepy.tech/badge/hqporner_api" alt="Downloads"></a>
<a href="https://pepy.tech/project/hqporner_api-async"><img src="https://static.pepy.tech/badge/hqporner_api-async" alt="Downloads"></a> <span style="font-size: 20px;">(Async)</span>
<a href="https://github.com/EchterAlsFake/hqporner_api/workflows/"><img src="https://github.com/EchterAlsFake/hqporner_api/workflows/CodeQL/badge.svg" alt="CodeQL Analysis"/></a>
<a href="https://github.com/EchterAlsFake/hqporner_api/workflows/"><img src="https://github.com/EchterAlsFake/hqporner_api/actions/workflows/tests.yml/badge.svg" alt="API Tests"/></a>
<a href="https://github.com/EchterAlsFake/hqporner_api/actions/workflows/sync-tests.yml"><img src="https://github.com/EchterAlsFake/hqporner_api/actions/workflows/sync-tests.yml/badge.svg" alt="API Tests"/></a>
<a href="https://github.com/EchterAlsFake/hqporner_api/actions/workflows/async-tests.yml"><img src="https://github.com/EchterAlsFake/hqporner_api/actions/workflows/async-tests.yml/badge.svg?branch=async" alt="API Tests"/></a>
</div>


# Description

HQPorner API is an API for HQPorner. It allows you to fetch information from videos using regexes and requests.
Expand Down
2 changes: 1 addition & 1 deletion hqporner_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get_thumbnails(self) -> list:

query = title.replace(" ", "+")
html_content = core.fetch(url=f"{root_url}/?q={query}")
soup = BeautifulSoup(html_content)
soup = BeautifulSoup(html_content, features="html.parser")
divs = soup.find_all('div', class_='row')

for div in divs:
Expand Down

0 comments on commit 5624ad7

Please sign in to comment.