This commit is contained in:
parent
7a15460cea
commit
230c5a76cf
@ -7,9 +7,9 @@ steps:
|
||||
image: python:slim
|
||||
commands:
|
||||
- pip install flake8
|
||||
- flake8
|
||||
- flake8 --max-line-length 111
|
||||
- name: epub
|
||||
image: python:slim
|
||||
image: python
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
- python livres_fr.py
|
||||
@ -41,3 +41,8 @@ steps:
|
||||
- curl -Ss -u "$USER":"$PASS" -T "output/The Wandering Inn - Volume 6.pdf" "https://cloud.crystalyx.net/remote.php/dav/files/$USER/Public/TWI/The Wandering Inn - Volume 6.pdf"
|
||||
- curl -Ss -u "$USER":"$PASS" -T "output/The Wandering Inn - Volume 7.epub" "https://cloud.crystalyx.net/remote.php/dav/files/$USER/Public/TWI/The Wandering Inn - Volume 7.epub"
|
||||
- curl -Ss -u "$USER":"$PASS" -T "output/The Wandering Inn - Volume 7.pdf" "https://cloud.crystalyx.net/remote.php/dav/files/$USER/Public/TWI/The Wandering Inn - Volume 7.pdf"
|
||||
environment:
|
||||
USER:
|
||||
from_secret: nextcloud_user
|
||||
PASS:
|
||||
from_secret: nextcloud_password
|
||||
|
@ -39,6 +39,8 @@ for volume_tag in tags:
|
||||
|
||||
for pagination in text.find_all('a'):
|
||||
pagination.decompose()
|
||||
for image in text.find_all('img'):
|
||||
image.decompose()
|
||||
|
||||
print(title)
|
||||
|
||||
|
@ -8,6 +8,7 @@ if not os.path.exists('output'):
|
||||
os.makedirs('output')
|
||||
|
||||
post = 0
|
||||
url = 'https://www.jeunesecrivains.com/t53075p%s-the-wandering-inn-fan-traduction-fantastique-aventure'
|
||||
volumes = [
|
||||
None,
|
||||
Epub("L'auberge Vagabonde - Volume 1", cover='cover.png'),
|
||||
@ -15,8 +16,7 @@ volumes = [
|
||||
]
|
||||
|
||||
for page in range(12):
|
||||
html = requests.get(
|
||||
'https://www.jeunesecrivains.com/t53075p%s-the-wandering-inn-fan-traduction-fantastique-aventure' % (page * 15))
|
||||
html = requests.get(url % (page * 15))
|
||||
soup = BeautifulSoup(html.text, 'html.parser')
|
||||
tags = soup.select('div.postbody')
|
||||
|
||||
|
Reference in New Issue
Block a user