pars-hitmotop 0.0.9__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/PKG-INFO +3 -3
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/entered_tracks.py +1 -1
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/rating_tracks_count.py +1 -1
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/rating_tracks_page.py +1 -2
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop.egg-info/PKG-INFO +3 -3
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/setup.py +3 -3
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/README.md +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/__init__.py +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/excepts.py +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop/how_to_use.py +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop.egg-info/SOURCES.txt +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop.egg-info/dependency_links.txt +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop.egg-info/requires.txt +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/pars_hitmotop.egg-info/top_level.txt +0 -0
- {pars_hitmotop-0.0.9 → pars_hitmotop-0.1.1}/setup.cfg +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pars_hitmotop
|
3
|
-
Version: 0.
|
4
|
-
Home-page: https://github.com/
|
5
|
-
Download-URL: https://github.com/
|
3
|
+
Version: 0.1.1
|
4
|
+
Home-page: https://github.com/JoyHubN/pars_hitmos
|
5
|
+
Download-URL: https://github.com/JoyHubN/pars_hitmos/arhive/v0.1.1.zip
|
6
6
|
Author: Joy_079
|
7
7
|
Author-email: Prufu@yandex.ru
|
8
8
|
Classifier: Programming Language :: Python
|
@@ -62,7 +62,7 @@ class EnteredTrack:
|
|
62
62
|
_track_url = [f"{__url1}{tra_url.get('href')}" for tra_url in _soup.find_all('a', class_='track__info-l')]
|
63
63
|
|
64
64
|
_items = []
|
65
|
-
for idx in range(len(_track_titles)):
|
65
|
+
for idx in range(self.amount if len(_track_titles) > self.amount else len(_track_titles)):
|
66
66
|
if self.get_redirect_url and len(_track_urls_dow[idx])>0:
|
67
67
|
direct_download_link = requests.get(_track_urls_dow[idx],headers=__headers,allow_redirects=True).url
|
68
68
|
else: direct_download_link = None
|
@@ -52,7 +52,7 @@ param: count - число от 1 до 48, кол-во треков
|
|
52
52
|
|
53
53
|
_items = []
|
54
54
|
|
55
|
-
for idx in range(len(_track_titles)):
|
55
|
+
for idx in range(self.count_tracks if len(_track_titles) > self.count_tracks else len(_track_titles)):
|
56
56
|
if self.get_redirect_url and len(_track_urls_dow[idx])>0:
|
57
57
|
direct_download_link = requests.get(_track_urls_dow[idx],headers=__headers,allow_redirects=True).url
|
58
58
|
else: direct_download_link = None
|
@@ -1,7 +1,6 @@
|
|
1
1
|
'''Рейтинговые треки'''
|
2
2
|
import fake_useragent, requests
|
3
3
|
from bs4 import BeautifulSoup
|
4
|
-
from typing import Union
|
5
4
|
from .excepts import PageError, RedirectErr, PageCount
|
6
5
|
|
7
6
|
class RatingPage:
|
@@ -49,7 +48,7 @@ class RatingPage:
|
|
49
48
|
_track_urls_dow = [i.get('href') for i in _soup.find_all('a', class_='track__download-btn')]
|
50
49
|
_track_url = [f"{__url1}{tra_url.get('href')}" for tra_url in _soup.find_all('a', class_='track__info-l')]
|
51
50
|
|
52
|
-
for idx in range(
|
51
|
+
for idx in range(len(_track_titles), 48):
|
53
52
|
if self.get_redirect_url and len(_track_urls_dow[idx])>0:
|
54
53
|
direct_download_link = requests.get(_track_urls_dow[idx],headers=__headers,allow_redirects=True).url
|
55
54
|
else: direct_download_link = None
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pars-hitmotop
|
3
|
-
Version: 0.
|
4
|
-
Home-page: https://github.com/
|
5
|
-
Download-URL: https://github.com/
|
3
|
+
Version: 0.1.1
|
4
|
+
Home-page: https://github.com/JoyHubN/pars_hitmos
|
5
|
+
Download-URL: https://github.com/JoyHubN/pars_hitmos/arhive/v0.1.1.zip
|
6
6
|
Author: Joy_079
|
7
7
|
Author-email: Prufu@yandex.ru
|
8
8
|
Classifier: Programming Language :: Python
|
@@ -1,6 +1,6 @@
|
|
1
1
|
from setuptools import setup
|
2
2
|
|
3
|
-
version='0.
|
3
|
+
version='0.1.1'
|
4
4
|
with open('README.md', encoding='utf-8') as f:
|
5
5
|
long_description=f.read()
|
6
6
|
|
@@ -12,8 +12,8 @@ setup(
|
|
12
12
|
author_email='Prufu@yandex.ru',
|
13
13
|
long_description=long_description,
|
14
14
|
long_description_content_type='text/markdown',
|
15
|
-
url='https://github.com/
|
16
|
-
download_url=f'https://github.com/
|
15
|
+
url='https://github.com/JoyHubN/pars_hitmos',
|
16
|
+
download_url=f'https://github.com/JoyHubN/pars_hitmos/arhive/v{version}.zip',
|
17
17
|
install_requires=['bs4','colorama','fake-useragent','requests','lxml'],
|
18
18
|
# license=...,
|
19
19
|
packages=['pars_hitmotop'],
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|