abstract-webtools 0.1.6.132__py3-none-any.whl → 0.1.6.133__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.
@@ -216,14 +216,14 @@ def validate_video_urls(urls,
216
216
  return output_urls[-1]
217
217
 
218
218
  return output_urls
219
- def clean_url(urls):
220
- init_typ = type(urls)
221
- urls = make_list(urls or [])
222
- for i,url in enumerate(urls):
223
- urls[i] = url.replace('threads.com','threads.net')
224
- if urls and init_typ != list:
225
- urls = urls[0]
226
- return urls
219
+
220
+ def normalize_threads_url(u: str) -> str:
221
+ p = urlparse(u)
222
+ if p.netloc in {"threads.com", "www.threads.com"}:
223
+ p = p._replace(netloc="www.threads.net") # fallback for older extractors
224
+ return urlunparse(p)
225
+ return u
226
+
227
227
 
228
228
  def get_bolshevid_videos(url,
229
229
  get_info_url=True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstract_webtools
3
- Version: 0.1.6.132
3
+ Version: 0.1.6.133
4
4
  Summary: Abstract Web Tools is a Python package that provides various utility functions for web scraping tasks. It is built on top of popular libraries such as `requests`, `BeautifulSoup`, and `urllib3` to simplify the process of fetching and parsing web content.
5
5
  Home-page: https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_webtools
6
6
  Author: putkoff
@@ -34,7 +34,7 @@ abstract_webtools/managers/userAgentManager.py,sha256=cUaOlcCTzftVBCp9ZHwMXR9IB1
34
34
  abstract_webtools/managers/videoDownloader.py,sha256=mKXhKYNnJwPaiqAsHvFTBGLdXFgR3wdV0G1OIimiKbE,15424
35
35
  abstract_webtools/managers/videoDownloader2.py,sha256=v3H6akdhvVWGrB-r35m3cp_-aKkNWadpfCiMylOnv6w,12748
36
36
  abstract_webtools/managers/clownworld/__init__.py,sha256=eq25euhRbFqHLm1ibi_7FGz_oNWs-kkyAkETzK3r4_Q,35
37
- abstract_webtools/managers/clownworld/get_bolshevid_video.py,sha256=QaX90q4bBawfkycFI9MIDtWogmBROH8r8NWl0C45VEg,10530
37
+ abstract_webtools/managers/clownworld/get_bolshevid_video.py,sha256=2q8bveL3uuOLvcfhn9nInKePowG6C80oaHrWSEHs-u8,10526
38
38
  abstract_webtools/managers/linkManager/__init__.py,sha256=NpfWNzvTLSfsIWSeLYIxPzeLHADk_grSx5rfgCeWERw,27
39
39
  abstract_webtools/managers/linkManager/linkManager.py,sha256=roxOzOELca0rOlcMaJkTQHN3S0XF7dJihZmMq-uIXPQ,12184
40
40
  abstract_webtools/managers/requestManager/__init__.py,sha256=z2qGtweEoO_OKr959LGxVXEMu1hu7PIkmh89BEh5TI8,30
@@ -45,7 +45,7 @@ abstract_webtools/managers/soupManager/soupManager.py,sha256=U3_o189-OWoBRaSCe2s
45
45
  abstract_webtools/managers/urlManager/__init__.py,sha256=gaJCHeK91Z-eYsBnxgdhbIUten1-gbx-zqx70R6ag-Y,26
46
46
  abstract_webtools/managers/urlManager/urlManager.py,sha256=vCFuLADmv3h7icaaoAsImGqb_49VizPY_ZvMl-C7PYk,7756
47
47
  abstract_webtools/managers/videos/Heather brooke swallo from condom.mp4,sha256=h-bKFLAHt7pGLGu4EcMvSSox7BPRK0Nga3u813iMVKQ,8335544
48
- abstract_webtools-0.1.6.132.dist-info/METADATA,sha256=Uxf8Mr8b6ohxjGZWJOAbv_Ow1CKdhyuRIPpOAKEWEvk,7289
49
- abstract_webtools-0.1.6.132.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- abstract_webtools-0.1.6.132.dist-info/top_level.txt,sha256=2DMJ7RmjTcjCsa-uwAV0K6eXXlIIkFDEjBLg_uyCmCI,18
51
- abstract_webtools-0.1.6.132.dist-info/RECORD,,
48
+ abstract_webtools-0.1.6.133.dist-info/METADATA,sha256=yeaJCnv1U20AjR8EsoVy8cbU3QfH9M1FlVOR54mZI0k,7289
49
+ abstract_webtools-0.1.6.133.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ abstract_webtools-0.1.6.133.dist-info/top_level.txt,sha256=2DMJ7RmjTcjCsa-uwAV0K6eXXlIIkFDEjBLg_uyCmCI,18
51
+ abstract_webtools-0.1.6.133.dist-info/RECORD,,