PgsFile 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl
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.
Potentially problematic release.
This version of PgsFile might be problematic. Click here for more details.
- PgsFile/PgsFile.py +8 -0
- PgsFile/__init__.py +1 -1
- {PgsFile-0.1.8.dist-info → PgsFile-0.1.9.dist-info}/METADATA +2 -2
- {PgsFile-0.1.8.dist-info → PgsFile-0.1.9.dist-info}/RECORD +7 -7
- {PgsFile-0.1.8.dist-info → PgsFile-0.1.9.dist-info}/LICENSE +0 -0
- {PgsFile-0.1.8.dist-info → PgsFile-0.1.9.dist-info}/WHEEL +0 -0
- {PgsFile-0.1.8.dist-info → PgsFile-0.1.9.dist-info}/top_level.txt +0 -0
PgsFile/PgsFile.py
CHANGED
|
@@ -1165,6 +1165,14 @@ def run_command(command: str) -> str:
|
|
|
1165
1165
|
|
|
1166
1166
|
return output_str
|
|
1167
1167
|
|
|
1168
|
+
# Import the urllib.parse module to handle URL encoding
|
|
1169
|
+
import urllib.parse
|
|
1170
|
+
# Define a function to URL-encode a Chinese keyword
|
|
1171
|
+
def encode_chinese_keyword_for_url(chinese_keyword):
|
|
1172
|
+
# Use urllib.parse.quote to encode the Chinese keyword
|
|
1173
|
+
encoded_keyword = urllib.parse.quote(chinese_keyword)
|
|
1174
|
+
# Return the encoded keyword
|
|
1175
|
+
return encoded_keyword
|
|
1168
1176
|
|
|
1169
1177
|
import random
|
|
1170
1178
|
import requests
|
PgsFile/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 1. Web scraping
|
|
2
2
|
from .PgsFile import PGScraper
|
|
3
3
|
from .PgsFile import audiovisual_downloader
|
|
4
|
-
from .PgsFile import headers
|
|
4
|
+
from .PgsFile import headers, encode_chinese_keyword_for_url
|
|
5
5
|
|
|
6
6
|
# 2. Package/library management
|
|
7
7
|
from .PgsFile import install_package, uninstall_package
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PgsFile
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: This module aims to simplify Python package management, script execution, file handling, web scraping, multimedia download, data cleaning, and word list generation for literary students, making it more accessible and convenient to use.
|
|
5
|
-
Home-page: https://mp.weixin.qq.com/s/
|
|
5
|
+
Home-page: https://mp.weixin.qq.com/s/12-KVLfaPszoZkCxuRd-nQ?token=1589547443&lang=zh_CN
|
|
6
6
|
Author: Pan Guisheng
|
|
7
7
|
Author-email: 895284504@qq.com
|
|
8
8
|
License: Educational free
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
PgsFile/PgsFile.py,sha256=
|
|
2
|
-
PgsFile/__init__.py,sha256=
|
|
1
|
+
PgsFile/PgsFile.py,sha256=Tm7-TkW4dpRtLGRR06t6jjsga8MJelu6BeirtvHURxc,79720
|
|
2
|
+
PgsFile/__init__.py,sha256=PJ8pJVly_6qNe4zEWp5Q5kLdy0rNcyilM-bbBemxhl4,2259
|
|
3
3
|
PgsFile/Corpora/Idioms/English_Idioms_8774.txt,sha256=qlsP0yI_XGECBRiPZuLkGZpdasc77sWSKexANu7v8_M,175905
|
|
4
4
|
PgsFile/Corpora/Monolingual/Chinese/People's Daily 20130605/Raw/00000000.txt,sha256=SLGGSMSb7Ff1RoBstsTW3yX2wNZpqEUchFNpcI-mrR4,1513
|
|
5
5
|
PgsFile/Corpora/Monolingual/Chinese/People's Daily 20130605/Raw/00000001.txt,sha256=imOa6UoCOIZoPXT4_HNHgCUJtd4FTIdk2FZNHNBgJyg,3372
|
|
@@ -2618,8 +2618,8 @@ PgsFile/models/slovene.pickle,sha256=faxlAhKzeHs5mWwBvSCEEVST5vbsOQurYfdnUlsIuOo
|
|
|
2618
2618
|
PgsFile/models/spanish.pickle,sha256=Jx3GAnxKrgVvcqm_q1ZFz2fhmL9PlyiVhE5A9ZiczcM,597831
|
|
2619
2619
|
PgsFile/models/swedish.pickle,sha256=QNUOva1sqodxXy4wCxIX7JLELeIFpUPMSlaQO9LJrPo,1034496
|
|
2620
2620
|
PgsFile/models/turkish.pickle,sha256=065H12UB0CdpiAnRLnUpLJw5KRBIhUM0KAL5Xbl2XMw,1225013
|
|
2621
|
-
PgsFile-0.1.
|
|
2622
|
-
PgsFile-0.1.
|
|
2623
|
-
PgsFile-0.1.
|
|
2624
|
-
PgsFile-0.1.
|
|
2625
|
-
PgsFile-0.1.
|
|
2621
|
+
PgsFile-0.1.9.dist-info/LICENSE,sha256=cE5c-QToSkG1KTUsU8drQXz1vG0EbJWuU4ybHTRb5SE,1138
|
|
2622
|
+
PgsFile-0.1.9.dist-info/METADATA,sha256=JAqaoghX_comHPuhW5pb3UskF65jKoJv9RTR0FYZbEA,4983
|
|
2623
|
+
PgsFile-0.1.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
2624
|
+
PgsFile-0.1.9.dist-info/top_level.txt,sha256=028hCfwhF3UpfD6X0rwtWpXI1RKSTeZ1ALwagWaSmX8,8
|
|
2625
|
+
PgsFile-0.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|