-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotes.txt
More file actions
74 lines (70 loc) · 2.91 KB
/
Notes.txt
File metadata and controls
74 lines (70 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# def armor_stats(driver, href):
# driver.get(href)
# time.sleep(3)
# # Implement armor stats extraction similar to spell_stats
# Phy_DEF = 0
# Strike_DEF = 0
# Slash_DEF = 0
# Pierce_DEF = 0
# Magic_DEF = 0
# Fire_DEF = 0
# Lighting_DEF = 0
# Holy_DEF = 0
# Armorinfo = {
# 'Physical': Phy_DEF,
# 'Strike': Strike_DEF,
# 'Slash': Slash_DEF,
# 'Pierce': Pierce_DEF,
# 'Magic': Magic_DEF,
# 'Fire': Fire_DEF,
# 'Lighting': Lighting_DEF,
# 'Holy': Holy_DEF
# }
# # Write to JSON File
# file_path = "armor.json"
# json_line = json.dumps(Armorinfo)
# with open(file_path, 'a') as fp:
# fp.write(json_line + '\n')
# # 3. We need to get armor info from the Elden Ring Wiki
# URL = 'https://eldenring.wiki.fextralife.com/Armor+Comparison+Tables'
# driver.get(URL)
# time.sleep(3) # Wait for the page to load
# armor_index = driver.find_elements(By.XPATH, "/html/body/div[2]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div/div/div[2]/div/div[4]/div[1]/div[4]/div[1]//a[@class='wiki_link wiki_tooltip']") # Finds all a tags at xpath
# armors = [elem.get_attribute('href') for elem in armor_index] # Extract href attributes
# set(armors) # Remove duplicates if any
# for armor in armors:
# armor_stats(driver, armor)
From Scrapper.py --> main()
# ================================================================
def CreateOwnBuild():
os.system('cls' if os.name == 'nt' else 'clear')
print("Welcome to builder+, here you can construct your own build!")
print("Please enter: Vigor, Mind, Endurance, Strength, Dexterity, Intelligence, Faith, Arcane.\n")
# Requirements
Vigor = input("Please enter your Vigor stat: ")
Mind = input("Please enter your Mind stat: ")
Endurance = input("Please enter your Endurance stat: ")
Strength = input("Please enter your Strength stat: ")
Dexterity = input("Please enter your Dexterity stat: ")
Intelligence = input("Please enter your Intelligence stat: ")
Faith = input("Please enter your Faith stat: ")
Arcane = input("Please enter your Arcane stat: ")
# Items
print("Please enter the weapon you will use, otherwise enter None.")
MWeapon = input("Please enter the main weapon you will use.")
MSpells = input("Please enter a main spell you will use.")
ArmorSet = input("Please enter the armor you will wear.")
CustomBuild = {
"PlayerHealth" : Vigor,
"PlayerMana" : Mind,
"Stamina" : Endurance,
"Strength" : Strength,
"Dexterity" : Dexterity,
"Intelligence" : Intelligence,
"Faith" : Faith,
"Arcane" : Arcane,
"MainWeapon" : MWeapon,
"MainSpells" : MSpells,
"ArmorSet" : ArmorSet,
}
return CustomBuild