datamarket 0.9.38__py3-none-any.whl → 0.9.39__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 datamarket might be problematic. Click here for more details.

File without changes
@@ -0,0 +1,23 @@
1
+ ########################################################################################################################
2
+ # IMPORTS
3
+
4
+ import asyncio
5
+ from random import randint
6
+
7
+ from playwright.async_api import Page
8
+
9
+
10
+ ########################################################################################################################
11
+ # FUNCTIONS
12
+
13
+
14
+ async def human_type(page: Page, text: str, delay: int = 100):
15
+ for char in text:
16
+ await page.keyboard.type(char, delay=randint(int(delay * 0.5), int(delay * 1.5))) # noqa: S311
17
+
18
+
19
+ async def human_press_key(page: Page, key: str, count: int = 1, delay: int = 100, sleep=True):
20
+ for _ in range(count):
21
+ await page.keyboard.press(key, delay=randint(int(delay * 0.5), int(delay * 1.5))) # noqa: S311
22
+ if sleep:
23
+ await asyncio.sleep(randint(int(delay * 1.5), int(delay * 2.5)) / 1000) # noqa: S311
@@ -0,0 +1,23 @@
1
+ ########################################################################################################################
2
+ # IMPORTS
3
+
4
+ import time
5
+ from random import randint
6
+
7
+ from playwright.sync_api import Page
8
+
9
+
10
+ ########################################################################################################################
11
+ # FUNCTIONS
12
+
13
+
14
+ def human_type(page: Page, text: str, delay: int = 100):
15
+ for char in text:
16
+ page.keyboard.type(char, delay=randint(int(delay * 0.5), int(delay * 1.5))) # noqa: S311
17
+
18
+
19
+ def human_press_key(page: Page, key: str, count: int = 1, delay: int = 100, sleep=True):
20
+ for _ in range(count):
21
+ page.keyboard.press(key, delay=randint(int(delay * 0.5), int(delay * 1.5))) # noqa: S311
22
+ if sleep:
23
+ time.sleep(randint(int(delay * 1.5), int(delay * 2.5)) / 1000) # noqa: S311
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: datamarket
3
- Version: 0.9.38
3
+ Version: 0.9.39
4
4
  Summary: Utilities that integrate advanced scraping knowledge into just one library.
5
- Home-page: https://datamarket.es
6
5
  License: GPL-3.0-or-later
7
6
  Author: DataMarket
8
7
  Author-email: techsupport@datamarket.es
@@ -97,7 +96,7 @@ Requires-Dist: pandas (>=2.0.0,<3.0.0) ; extra == "pandas"
97
96
  Requires-Dist: pandera (>=0.22.0,<0.23.0) ; extra == "pandera"
98
97
  Requires-Dist: pendulum (>=3.0.0,<4.0.0)
99
98
  Requires-Dist: pillow (>=11.0.0,<12.0.0) ; extra == "pillow"
100
- Requires-Dist: playwright (==1.47.0) ; extra == "playwright"
99
+ Requires-Dist: playwright (==1.47.0) ; extra == "playwright" or extra == "camoufox"
101
100
  Requires-Dist: pre-commit (>=4.0.0,<5.0.0)
102
101
  Requires-Dist: presidio-analyzer[phonenumbers] (>=2.0.0,<3.0.0) ; extra == "pii"
103
102
  Requires-Dist: presidio-anonymizer (>=2.0.0,<3.0.0) ; extra == "pii"
@@ -114,18 +113,18 @@ Requires-Dist: rapidfuzz (>=3.0.0,<4.0.0) ; extra == "rapidfuzz"
114
113
  Requires-Dist: requests (>=2.0.0,<3.0.0)
115
114
  Requires-Dist: retry (>=0.9.0,<0.10.0) ; extra == "retry"
116
115
  Requires-Dist: shapely (>=2.0.0,<3.0.0) ; extra == "shapely"
117
- Requires-Dist: soda-core-mysql (>=3.0.0,<4.0.0) ; extra == "soda-core-mysql"
116
+ Requires-Dist: soda-core-mysql-utf8-hotfix (>=3.0.0,<4.0.0) ; extra == "soda-core-mysql"
118
117
  Requires-Dist: soda-core-postgres (>=3.0.0,<4.0.0) ; extra == "soda-core-postgres"
119
118
  Requires-Dist: spacy (>=3.0.0,<4.0.0) ; extra == "pii"
120
119
  Requires-Dist: spacy-langdetect (>=0.1.0,<0.2.0) ; extra == "pii"
121
120
  Requires-Dist: stem (>=1.0.0,<2.0.0) ; extra == "stem" or extra == "proxy"
122
121
  Requires-Dist: tenacity (>=9.0.0,<10.0.0)
123
- Requires-Dist: tf-playwright-stealth (>=1.0.0,<2.0.0)
124
122
  Requires-Dist: tqdm (>=4.0.0,<5.0.0) ; extra == "tqdm"
125
123
  Requires-Dist: typer (>=0.15.0,<0.16.0)
126
124
  Requires-Dist: unidecode (>=1.0.0,<2.0.0)
127
125
  Requires-Dist: xmltodict (>=0.14.0,<0.15.0) ; extra == "xmltodict"
128
126
  Project-URL: Documentation, https://github.com/Data-Market/datamarket
127
+ Project-URL: Homepage, https://datamarket.es
129
128
  Project-URL: Repository, https://github.com/Data-Market/datamarket
130
129
  Description-Content-Type: text/markdown
131
130
 
@@ -14,6 +14,9 @@ datamarket/utils/__init__.py,sha256=8D5a8oKgqd6WA1RUkiKCn4l_PVemtyuckxQut0vDHXM,
14
14
  datamarket/utils/airflow.py,sha256=al0vc0YUikNu3Oy51VSn52I7pMU40akFBOl_UlHa2E4,795
15
15
  datamarket/utils/alchemy.py,sha256=SRq6kgh1aANXVShBPgAuglmNhZssPWwWEY503gKSia8,635
16
16
  datamarket/utils/main.py,sha256=j8wnAxeLvijdRU9M4V6HunWH7vgWWHP4u4xamzkWcUU,7009
17
+ datamarket/utils/playwright/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
+ datamarket/utils/playwright/async_api.py,sha256=pWfVj-ItfIeZBxG7WiUHKSeZDcHQFUQ5mrNGyIh1IdA,883
19
+ datamarket/utils/playwright/sync_api.py,sha256=lIGm8mLxhFg04LVNdF8SO_9yjOLBnWe5pPry6ZFMnIg,846
17
20
  datamarket/utils/selenium.py,sha256=IMKlbLzXABFhACnWzhHmB0l2hhVzNwHGZwbo14nEewQ,2499
18
21
  datamarket/utils/soda.py,sha256=eZTXFbI1P3WoMd1MM-YjoVTpdjTcDSWuvBb7ViBMhSQ,941
19
22
  datamarket/utils/strings/__init__.py,sha256=b6TYOT9v7y9ID-lDyZk4E8BH2uIPbsF2ZSLGjCQ1MCQ,43
@@ -21,7 +24,7 @@ datamarket/utils/strings/normalization.py,sha256=QLZ-THzjGOK9eWPPR1PrsffwQkSOx_M
21
24
  datamarket/utils/strings/obfuscation.py,sha256=8gMepfjPq0N4_IpKR6i2dy_9VJugQ3qJiRiRvKavB3s,5246
22
25
  datamarket/utils/typer.py,sha256=FDF3l6gh3UlAFPsHCtesnekvct2rKz0oFn3uKARBQvE,814
23
26
  datamarket/utils/types.py,sha256=vxdQZdwdXrfPR4Es52gBgol-tMRIOD6oK9cBo3rB0JQ,74
24
- datamarket-0.9.38.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
25
- datamarket-0.9.38.dist-info/METADATA,sha256=rY2O90LCgMiAmWuussQ8xylApqA6jj1hhSB9FGT0Jpk,6968
26
- datamarket-0.9.38.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
27
- datamarket-0.9.38.dist-info/RECORD,,
27
+ datamarket-0.9.39.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
28
+ datamarket-0.9.39.dist-info/METADATA,sha256=hSvX9DNsR_mJwh_Wcx1HbU5o3LTK2nGctn-kzQ-ZERo,6961
29
+ datamarket-0.9.39.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
30
+ datamarket-0.9.39.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any