libgenrs 0.2.2__tar.gz → 0.2.3__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.
- {libgenrs-0.2.2 → libgenrs-0.2.3}/PKG-INFO +12 -4
- {libgenrs-0.2.2 → libgenrs-0.2.3}/README.md +1 -1
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs/__init__.py +1 -1
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs/download.py +2 -2
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs/search.py +2 -2
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/PKG-INFO +12 -4
- {libgenrs-0.2.2 → libgenrs-0.2.3}/LICENSE +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs/utils.py +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/SOURCES.txt +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/dependency_links.txt +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/not-zip-safe +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/requires.txt +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/libgenrs.egg-info/top_level.txt +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/setup.cfg +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/setup.py +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/tests/__init__.py +0 -0
- {libgenrs-0.2.2 → libgenrs-0.2.3}/tests/libgen_test.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: libgenrs
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Asynchronous python lib for Libgen.rs
|
|
5
5
|
Home-page: https://github.com/ramanveerji/libgenrs
|
|
6
|
-
Download-URL: https://github.com/ramanveerji/libgenrs/archive/v0.2.
|
|
6
|
+
Download-URL: https://github.com/ramanveerji/libgenrs/archive/v0.2.3.tar.gz
|
|
7
7
|
License: MIT License
|
|
8
8
|
Classifier: Intended Audience :: Developers
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
@@ -19,6 +19,14 @@ Requires-Dist: beautifulsoup4>=4.9.0
|
|
|
19
19
|
Requires-Dist: lxml>=4.6.5
|
|
20
20
|
Requires-Dist: requests>=2.25.0
|
|
21
21
|
Requires-Dist: tldextract>=3.1.0
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: download-url
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: summary
|
|
22
30
|
|
|
23
31
|
# libgenrs
|
|
24
32
|
|
|
@@ -133,7 +141,7 @@ The returned data looks like this: (The dict key is the Libgen id of the book)
|
|
|
133
141
|
'btih': '84195af51fa738cb232297dd1376df6d8b8313be',
|
|
134
142
|
'mirrors':
|
|
135
143
|
{
|
|
136
|
-
'main': 'http://
|
|
144
|
+
'main': 'http://books.ms/main/a382109f7fdde3be5b2cb4f82d97443b',
|
|
137
145
|
'libgen.lc': 'http://libgen.lc/ads.php?md5=a382109f7fdde3be5b2cb4f82d97443b',
|
|
138
146
|
'z-library': 'http://b-ok.cc/md5/a382109f7fdde3be5b2cb4f82d97443b',
|
|
139
147
|
'libgen.pw': 'https://libgen.pw/item?id=881061',
|
|
@@ -111,7 +111,7 @@ The returned data looks like this: (The dict key is the Libgen id of the book)
|
|
|
111
111
|
'btih': '84195af51fa738cb232297dd1376df6d8b8313be',
|
|
112
112
|
'mirrors':
|
|
113
113
|
{
|
|
114
|
-
'main': 'http://
|
|
114
|
+
'main': 'http://books.ms/main/a382109f7fdde3be5b2cb4f82d97443b',
|
|
115
115
|
'libgen.lc': 'http://libgen.lc/ads.php?md5=a382109f7fdde3be5b2cb4f82d97443b',
|
|
116
116
|
'z-library': 'http://b-ok.cc/md5/a382109f7fdde3be5b2cb4f82d97443b',
|
|
117
117
|
'libgen.pw': 'https://libgen.pw/item?id=881061',
|
|
@@ -15,7 +15,7 @@ logg = logging.getLogger(__name__)
|
|
|
15
15
|
class LibgenDownload:
|
|
16
16
|
def __init__(self) -> None:
|
|
17
17
|
self.dest_folder = Path.cwd()
|
|
18
|
-
self.mirrors = ['
|
|
18
|
+
self.mirrors = ['books.ms', 'libgen.lc', 'libgen.gs', 'b-ok.cc']
|
|
19
19
|
self.regex = re.compile(
|
|
20
20
|
r'^(?:http|ftp)s?://' # http:// or https:// domain...
|
|
21
21
|
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|'
|
|
@@ -103,7 +103,7 @@ class LibgenDownload:
|
|
|
103
103
|
|
|
104
104
|
domain = str(tld.domain) + '.' + str(tld.suffix)
|
|
105
105
|
direct_links = []
|
|
106
|
-
if domain == '
|
|
106
|
+
if domain == 'books.ms':
|
|
107
107
|
div = soup.find('div', attrs={'id': 'download'})
|
|
108
108
|
for li in div.ul.findAll('li'):
|
|
109
109
|
direct_links.append(li.a['href'])
|
|
@@ -257,7 +257,7 @@ class Libgen:
|
|
|
257
257
|
data[res_id]['mirrors'] = {}
|
|
258
258
|
|
|
259
259
|
data[res_id]['mirrors'][
|
|
260
|
-
'main'] = f'http://
|
|
260
|
+
'main'] = f'http://books.ms/main/{md5}'
|
|
261
261
|
|
|
262
262
|
data[res_id]['mirrors'][
|
|
263
263
|
'libgen.lc'] = f'http://libgen.lc/ads.php?md5={md5}'
|
|
@@ -302,7 +302,7 @@ class Libgen:
|
|
|
302
302
|
dest_folder: Path = None,
|
|
303
303
|
progress: Optional[Callable[..., Awaitable[None]]] = None,
|
|
304
304
|
progress_args: list = []) -> Path:
|
|
305
|
-
"""Download the book from support mirro: '
|
|
305
|
+
"""Download the book from support mirro: 'books.ms', 'libgen.lc', 'libgen.gs', 'b-ok.cc'
|
|
306
306
|
|
|
307
307
|
|
|
308
308
|
Args:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: libgenrs
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Asynchronous python lib for Libgen.rs
|
|
5
5
|
Home-page: https://github.com/ramanveerji/libgenrs
|
|
6
|
-
Download-URL: https://github.com/ramanveerji/libgenrs/archive/v0.2.
|
|
6
|
+
Download-URL: https://github.com/ramanveerji/libgenrs/archive/v0.2.3.tar.gz
|
|
7
7
|
License: MIT License
|
|
8
8
|
Classifier: Intended Audience :: Developers
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
@@ -19,6 +19,14 @@ Requires-Dist: beautifulsoup4>=4.9.0
|
|
|
19
19
|
Requires-Dist: lxml>=4.6.5
|
|
20
20
|
Requires-Dist: requests>=2.25.0
|
|
21
21
|
Requires-Dist: tldextract>=3.1.0
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: download-url
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: summary
|
|
22
30
|
|
|
23
31
|
# libgenrs
|
|
24
32
|
|
|
@@ -133,7 +141,7 @@ The returned data looks like this: (The dict key is the Libgen id of the book)
|
|
|
133
141
|
'btih': '84195af51fa738cb232297dd1376df6d8b8313be',
|
|
134
142
|
'mirrors':
|
|
135
143
|
{
|
|
136
|
-
'main': 'http://
|
|
144
|
+
'main': 'http://books.ms/main/a382109f7fdde3be5b2cb4f82d97443b',
|
|
137
145
|
'libgen.lc': 'http://libgen.lc/ads.php?md5=a382109f7fdde3be5b2cb4f82d97443b',
|
|
138
146
|
'z-library': 'http://b-ok.cc/md5/a382109f7fdde3be5b2cb4f82d97443b',
|
|
139
147
|
'libgen.pw': 'https://libgen.pw/item?id=881061',
|
|
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
|
|
File without changes
|
|
File without changes
|