refactor list

This commit is contained in:
Eric Lay 2023-04-17 00:56:19 -05:00
parent c315894ba3
commit 1dfeae3711
1 changed files with 9 additions and 1 deletions

View File

@ -23,7 +23,15 @@ elif pokemon == "ho-oh":
pokemon = "Ho-oh" #serebii listed this way pokemon = "Ho-oh" #serebii listed this way
######## Get Pokedex Entry Number ######## ######## Get Pokedex Entry Number ########
begin_url = ["http://serebii.net/pokedex-xy/","http://serebii.net/pokedex-sv/","http://serebii.net/pokedex-swsh/","http://serebii.net/pokedex-sm/","http://serebii.net/pokedex-bw/","http://serebii.net/pokedex-dp/","http://serebii.net/pokedex-rs/","http://serebii.net/pokedex-gs/","http://serebii.net/pokedex/"] begin_url = ["http://serebii.net/pokedex-xy/",
"http://serebii.net/pokedex-sv/",
"http://serebii.net/pokedex-swsh/",
"http://serebii.net/pokedex-sm/",
"http://serebii.net/pokedex-bw/",
"http://serebii.net/pokedex-dp/",
"http://serebii.net/pokedex-rs/",
"http://serebii.net/pokedex-gs/",
"http://serebii.net/pokedex/"]
for i in begin_url: for i in begin_url:
request1 = requests.get(i) request1 = requests.get(i)
html1 = request1.content html1 = request1.content