cobweb-launcher 0.1.14__py3-none-any.whl → 0.1.15__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 cobweb-launcher might be problematic. Click here for more details.
- cobweb/equip/single/models.py +7 -1
- {cobweb_launcher-0.1.14.dist-info → cobweb_launcher-0.1.15.dist-info}/METADATA +1 -1
- {cobweb_launcher-0.1.14.dist-info → cobweb_launcher-0.1.15.dist-info}/RECORD +6 -6
- {cobweb_launcher-0.1.14.dist-info → cobweb_launcher-0.1.15.dist-info}/LICENSE +0 -0
- {cobweb_launcher-0.1.14.dist-info → cobweb_launcher-0.1.15.dist-info}/WHEEL +0 -0
- {cobweb_launcher-0.1.14.dist-info → cobweb_launcher-0.1.15.dist-info}/top_level.txt +0 -0
cobweb/equip/single/models.py
CHANGED
|
@@ -68,7 +68,7 @@ class Spider:
|
|
|
68
68
|
|
|
69
69
|
try:
|
|
70
70
|
self.spider_in_progress.push(1, direct_insertion=True)
|
|
71
|
-
|
|
71
|
+
log.info("spider seed: " + str(seed))
|
|
72
72
|
iterators = func(item, seed)
|
|
73
73
|
|
|
74
74
|
if not isgenerator(iterators):
|
|
@@ -77,7 +77,9 @@ class Spider:
|
|
|
77
77
|
continue
|
|
78
78
|
raise TypeError(f"{func.__name__} isn't a generator")
|
|
79
79
|
|
|
80
|
+
status = None
|
|
80
81
|
for it in iterators:
|
|
82
|
+
status = True
|
|
81
83
|
if getattr(it, "table_name", None):
|
|
82
84
|
store_queue = it.queue()
|
|
83
85
|
store_queue.push(
|
|
@@ -99,6 +101,10 @@ class Spider:
|
|
|
99
101
|
else:
|
|
100
102
|
raise TypeError("yield value type error!")
|
|
101
103
|
|
|
104
|
+
if not status:
|
|
105
|
+
seed._retry += 1
|
|
106
|
+
self.queue.push(seed)
|
|
107
|
+
|
|
102
108
|
except Exception as e:
|
|
103
109
|
seed._retry += 1
|
|
104
110
|
self.queue.push(seed)
|
|
@@ -27,13 +27,13 @@ cobweb/equip/distributed/launcher.py,sha256=1LzxibGXWR20XpXawakiRpEMaa9yfaj2rFSK
|
|
|
27
27
|
cobweb/equip/distributed/models.py,sha256=qTGzxLdb2arsZSZK2HE4-MrqhraUhc2Ol5wBvlv_aWA,5008
|
|
28
28
|
cobweb/equip/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
cobweb/equip/single/launcher.py,sha256=KRsw7yxklvFM85cel-EyLsNPLyrC9Hd26BMSx6-4Hac,6785
|
|
30
|
-
cobweb/equip/single/models.py,sha256=
|
|
30
|
+
cobweb/equip/single/models.py,sha256=w3LQEhTrgqoYZn5v9TiEK2A68xuC7QH7suRP9OYnoOg,4813
|
|
31
31
|
cobweb/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
cobweb/single/launcher.py,sha256=IoJbn87j7t7Pib_FxoWZmmX8asXOqNGb-9ospw6EYJI,7302
|
|
33
33
|
cobweb/single/models.py,sha256=UXcxr_Quok91k82plaqbj4deB-UBCWo14WCo6SS5L_o,4247
|
|
34
34
|
cobweb/single/nest.py,sha256=49K6KQ934INfPrWQsrq9rIFpQauLbLGOFbDaHvoQzOk,5015
|
|
35
|
-
cobweb_launcher-0.1.
|
|
36
|
-
cobweb_launcher-0.1.
|
|
37
|
-
cobweb_launcher-0.1.
|
|
38
|
-
cobweb_launcher-0.1.
|
|
39
|
-
cobweb_launcher-0.1.
|
|
35
|
+
cobweb_launcher-0.1.15.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
|
|
36
|
+
cobweb_launcher-0.1.15.dist-info/METADATA,sha256=xkxL2woC_kK4XxUfrCaf80SeA5SE9t_0vwMynXt90lc,1220
|
|
37
|
+
cobweb_launcher-0.1.15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
38
|
+
cobweb_launcher-0.1.15.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
|
|
39
|
+
cobweb_launcher-0.1.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|