You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
987 B
31 lines
987 B
import query.query_set
|
|
from query.query_set import return_as_df as df
|
|
from query.query_set import return_as_list
|
|
from util.util import get_items
|
|
from query.query_part_quantity import get_part_quantity, __find_parts_quantity
|
|
from file_handling import read_csv, add_to_csv
|
|
|
|
url00 = "https://www.bricklink.com/CatalogItemInv.asp?S=75979-1"
|
|
url01 = "https://www.bricklink.com/CatalogItemInv.asp?S=76387-1"
|
|
url02 = "https://www.bricklink.com/CatalogItemInv.asp?S=75308-1"
|
|
url03 = "https://www.bricklink.com/CatalogItemInv.asp?S=75192-1" # <-- 7000+ pieces
|
|
|
|
#lists = get_items(url00)
|
|
#parts = __find_parts_quantity(lists, 184) #185
|
|
#print(parts)
|
|
|
|
|
|
lists = get_part_quantity(url00)
|
|
|
|
with open("test.txt", "w") as file:
|
|
for items in lists:
|
|
file.writelines([items])
|
|
file.close()
|
|
|
|
# set_list = return_as_list(url00)
|
|
# add_to_csv.append_df_csv("test01.csv", df)
|
|
|
|
# add_to_csv.add_list_to_empty_csv("test.csv", set_list)
|
|
|
|
# print(df.to_string(index=False))
|