Skip to content

Commit

Permalink
Management of other links
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthowen committed Mar 27, 2022
1 parent d4f0772 commit 50c09cf
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 7 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
<a href="https://pypi.org/project/AlphacodersDownloader/">
<img src="https://img.shields.io/pypi/dd/AlphacodersDownloader?style=for-the-badge" alt="PyPI downloads">
</a>
<br>
<a href="https://aur.archlinux.org/packages/alphacodersdownloader/">
<img src="https://img.shields.io/badge/Arch_Linux-1793D1?style=for-the-badge&logo=arch-linux&logoColor=white" alt="Arch Linux"/>
</a>
<a href="https://github.com/Asthowen/AlphacodersDownloader/releases/latest/">
<img src="https://img.shields.io/badge/Debian-A81D33?style=for-the-badge&logo=debian&logoColor=white" alt="Debian"/>
</a>
<a href="https://github.com/Asthowen/AlphacodersDownloader/releases/latest/">
<img src="https://img.shields.io/badge/Fedora-294172?style=for-the-badge&logo=fedora&logoColor=white" alt="Fedora"/>
</a>

</p>
<h3 align="center">
<strong>A script for download wallpapers on https://alphacoders.com/ written in Python.</strong>
Expand Down Expand Up @@ -53,7 +64,7 @@ apt install curl apt-transport-https gnupg2

Import GPG key:
```bash
curl https://apt.asthowen.fr/key.gpg | apt-key add -
curl https://asthowen.fr/key.gpg | apt-key add -
```

Add the repository in `/etc/apt/sources.list.d/`:
Expand Down
2 changes: 1 addition & 1 deletion alphacoders_downloader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__title__ = "AlphacodersDownloader"
__version__ = "0.1.4"
__version__ = "0.1.4.1"
__author__ = "Asthowen"
__license__ = "GNU v3.0"
2 changes: 2 additions & 0 deletions alphacoders_downloader/alphacoders_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async def parse_url(self, url: str):
page = BeautifulSoup(await r.text(), 'html.parser')

find_images_urls = page.find('div', attrs={'id': 'big_container'})
if find_images_urls is None:
find_images_urls = page.find('div', attrs={'class': 'container-masonry'})

if find_images_urls is None:
raise WallpapersNotFounds(url)
Expand Down
2 changes: 1 addition & 1 deletion alphacoders_downloader/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__title__ = "AlphacodersDownloader"
__version__ = "0.1.3.2"
__version__ = "0.1.4.1"
__author__ = "Asthowen"
__license__ = "GNU v3.0"
2 changes: 1 addition & 1 deletion build/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Maintainer: squitch <[email protected]>

pkgname='python-alphacodersdownloader'
pkgver=0.1.4
pkgver=0.1.4.1
pkgrel=1
pkgdesc='A script for download backgrounds on https://alphacoders.com written in Python.'
arch=('any')
Expand Down
2 changes: 1 addition & 1 deletion build/setup_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name='AlphacodersDownloader',
version='0.1.4',
version='0.1.4.1',
author='Asthowen',
author_email='[email protected]',
maintainer='Asthowen',
Expand Down
2 changes: 1 addition & 1 deletion build/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
This script allows you to download wallpapers from the site https://alphacoders.com/.
* Download by categories (e.g: https://wall.alphacoders.com/by_sub_category.php?id=207679&name=Date+A+Live+Wallpapers)
* Download mobiles wallpapers (e.g: https://mobile.alphacoders.com/by-sub-category/207679)
version: 0.1.4
version: 0.1.4.1
grade: stable
base: core20
architectures:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='AlphacodersDownloader',
version='0.1.4',
version='0.1.4.1',
author='Asthowen',
author_email='[email protected]',
maintainer='Asthowen',
Expand Down

0 comments on commit 50c09cf

Please sign in to comment.