Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Commit b774806

Browse files
committed
1.1.1
In this update: - Update Dependencies - Fixed Raffle Items Scrape
1 parent 39f31f6 commit b774806

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

newegg/submit_raffle/raffles.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ def get_items():
1515
for raffle_item in products["ChildItem"]:
1616
# Get the item(s) in the combo
1717
combo_items = [] # Products that you can select to enter the raffle for
18-
for item in raffle_item["ComboItems"]:
19-
combo_items.append(item["Title"])
20-
items_name = " & ".join(combo_items)
18+
19+
if raffle_item["ComboItems"] == None:
20+
items_name = raffle_item["Title"]
21+
else:
22+
for item in raffle_item["ComboItems"]:
23+
combo_items.append(item["Title"])
24+
items_name = " & ".join(combo_items)
2125

2226
# Get the ID of the combo/item to enter the raffle & price
2327
item_id= raffle_item["ItemNumber"] # This is used to enter the raffle

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
captchatools
2-
requests
2+
requests==2.22.0
33
bs4
44
colorama
55
names

0 commit comments

Comments
 (0)