scrapely-python 0.1.48__py3-none-any.whl → 0.1.49__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.
- scrapely/__init__.py +1 -1
- scrapely/charging.py +7 -1
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/METADATA +1 -1
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/RECORD +9 -9
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/WHEEL +0 -0
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/licenses/LICENSE +0 -0
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/licenses/LICENSE-APACHE +0 -0
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/licenses/NOTICE +0 -0
- {scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/top_level.txt +0 -0
scrapely/__init__.py
CHANGED
scrapely/charging.py
CHANGED
|
@@ -206,6 +206,10 @@ def is_default_dataset_item_event(event_name: str) -> bool:
|
|
|
206
206
|
return event_name in (APIFY_DEFAULT_DATASET_ITEM_EVENT, SCRAPELY_DEFAULT_DATASET_ITEM_EVENT)
|
|
207
207
|
|
|
208
208
|
|
|
209
|
+
# The actor-start events the platform bills by itself (never an item the run saved).
|
|
210
|
+
PLATFORM_START_EVENTS = frozenset({'scrapely-actor-start', 'apify-actor-start'})
|
|
211
|
+
|
|
212
|
+
|
|
209
213
|
def resolve_default_dataset_item_event_name(pricing_info: dict) -> str:
|
|
210
214
|
"""Resolve the default dataset item event name from pricing info."""
|
|
211
215
|
if APIFY_DEFAULT_DATASET_ITEM_EVENT in pricing_info:
|
|
@@ -591,7 +595,9 @@ class ChargingManager:
|
|
|
591
595
|
if max_items is not None and any(
|
|
592
596
|
count >= max_items
|
|
593
597
|
for name, count in self._charged_events.items()
|
|
594
|
-
if not is_default_dataset_item_event(name)
|
|
598
|
+
if not is_default_dataset_item_event(name)
|
|
599
|
+
and name not in PLATFORM_START_EVENTS
|
|
600
|
+
and self._per_event_prices.get(name, 0) > 0
|
|
595
601
|
):
|
|
596
602
|
return CHARGE_LIMIT_MAX_ITEMS
|
|
597
603
|
if self._max_total_charge_usd is not None:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
scrapely/__init__.py,sha256=
|
|
1
|
+
scrapely/__init__.py,sha256=ZRXr8UV1q8K67a0j-SfyBUjdq6cU19DwuvEodIB761c,13040
|
|
2
2
|
scrapely/_browser_locations.py,sha256=8QVVnkms2bDn3_LDYgYDR59MvFx8757l_JYnZ7xb3oI,145269
|
|
3
3
|
scrapely/actor.py,sha256=QUSwx_GQnA8nw5VfmStZdMWT8xyUN18GIx1CCGPtWwk,95852
|
|
4
4
|
scrapely/browser_configuration.py,sha256=jAZapNSHLFW05B96df4wNBtcyiiU9DA3ml0yTL1FwfA,5770
|
|
5
5
|
scrapely/cdp_retry.py,sha256=hdTJEAIKhApM7IOk1DrQEl8NoflSJSmqd4RbNJ2IsgI,8540
|
|
6
|
-
scrapely/charging.py,sha256=
|
|
6
|
+
scrapely/charging.py,sha256=SliauZHjOFCJ2ZCFYISquGywHf_DQkS6hby76HJ427M,121022
|
|
7
7
|
scrapely/charging_client.py,sha256=RitzAfgJui0dQKenWz_aFc0HeA1qKvzcDpk2bC7K8C0,4567
|
|
8
8
|
scrapely/configuration.py,sha256=ONnzw4mhtrY2jVvoVUQ48dMgmMWnx3Gv7fXrT4pY9z8,16919
|
|
9
9
|
scrapely/errors.py,sha256=V8JBCGSyqrbwMD9GDv6ahWhZ92n2cb8AWxkxth6mcI8,4062
|
|
@@ -69,10 +69,10 @@ scrapely/storage/_file_system/_key_value_store_client.py,sha256=1C22qY-RWlARzMyW
|
|
|
69
69
|
scrapely/storage/_file_system/_storage_client.py,sha256=QHa3IULEb6AmgRFwpBqHD2OUTmtA_gl3lId-j6QdSFo,2027
|
|
70
70
|
scrapely/storage_clients/__init__.py,sha256=q2pC-Rwe-BfHl018OyN_P0EDSx4-hNdxbk3pOCLLd4U,618
|
|
71
71
|
scrapely/storages/__init__.py,sha256=kDNtd9VodjdHd4u7GzruJo0aB2HeiBN2_-HrkeqjmFg,139
|
|
72
|
-
scrapely_python-0.1.
|
|
73
|
-
scrapely_python-0.1.
|
|
74
|
-
scrapely_python-0.1.
|
|
75
|
-
scrapely_python-0.1.
|
|
76
|
-
scrapely_python-0.1.
|
|
77
|
-
scrapely_python-0.1.
|
|
78
|
-
scrapely_python-0.1.
|
|
72
|
+
scrapely_python-0.1.49.dist-info/licenses/LICENSE,sha256=pQGY0XwjIYh-a2HfawxHq1en53bXkFkDj2Q70jKWHr4,1088
|
|
73
|
+
scrapely_python-0.1.49.dist-info/licenses/LICENSE-APACHE,sha256=N8m0FzMq8i4UbTgXZvKEZJSD-27OF8pWZYS_atz4kTU,11355
|
|
74
|
+
scrapely_python-0.1.49.dist-info/licenses/NOTICE,sha256=1ltrzKk2ez7x2BPNpXeyvOlTty5AfABYDBlwNilpORk,788
|
|
75
|
+
scrapely_python-0.1.49.dist-info/METADATA,sha256=ANDR6QF6gCzxemV7uWvSlbsDB9CE3T-JysAr_ExVaUw,4914
|
|
76
|
+
scrapely_python-0.1.49.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
77
|
+
scrapely_python-0.1.49.dist-info/top_level.txt,sha256=T4B9UMrs4q99QSAFyD1zdXhl40KnLhBKqrDkPhOTsmY,9
|
|
78
|
+
scrapely_python-0.1.49.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{scrapely_python-0.1.48.dist-info → scrapely_python-0.1.49.dist-info}/licenses/LICENSE-APACHE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|