changed posting events slightly to be bold, updated pipeline to not accidentally delete wrong event, updated scraper to skip leader field but also handle if its not present at all
This commit is contained in:
@@ -60,8 +60,11 @@ class unloze_spider(scrapy.Spider):
|
||||
if index == 2:
|
||||
event_date = r
|
||||
if index == 3:
|
||||
event_time = r[:-1]
|
||||
if index == 4:
|
||||
event_time = r
|
||||
#just skipping the leader part on ze
|
||||
if index == 4 and '27015' not in event_server:
|
||||
event_reward = r
|
||||
if index == 5 and '27015' in event_server:
|
||||
event_reward = r
|
||||
index += 1
|
||||
event_maps = ""
|
||||
|
||||
Reference in New Issue
Block a user