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.

@@ -68,7 +68,7 @@ class Spider:
68
68
 
69
69
  try:
70
70
  self.spider_in_progress.push(1, direct_insertion=True)
71
- # log.info("spider seed: " + str(seed))
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -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=RFhodfO9UDba2C4a3yHVrbzv-CSqfgbR2zAH8U-O7gk,4640
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.14.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
36
- cobweb_launcher-0.1.14.dist-info/METADATA,sha256=cHaBgWqZpwy_aGAZF0jBOwYzbDlJUSMmj_mXb0ST7L0,1220
37
- cobweb_launcher-0.1.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
38
- cobweb_launcher-0.1.14.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
39
- cobweb_launcher-0.1.14.dist-info/RECORD,,
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,,