from bs4 import BeautifulSoup
import requests as r
pokemon = []
with open('pokemon.txt', 'w') as f:
    url = 'http://pokemondb.net/pokedex/game/firered-leafgreen'
    soup = BeautifulSoup(r.get(url).text)
    all_pokemon = soup.find('div', {'class': 'infocard-tall-list'})
    for p in all_pokemon.find_all('span', {'infocard-tall'}):
        link = p.find('a', {'class': 'ent-name'}).get('href').split('/')[-1]
        pokemon.append(link.capitalize())
    pokemon.sort()
    for p in pokemon:
        f.write(p + '\n')

dc6da194fcf7a4b36b48c0821dd55cde4f1538cb
<mask token>

<mask token>
with open('pokemon.txt', 'w') as f:
    url = 'http://pokemondb.net/pokedex/game/firered-leafgreen'
    soup = BeautifulSoup(r.get(url).text)
    all_pokemon = soup.find('div', {'class': 'infocard-tall-list'})
    for p in all_pokemon.find_all('span', {'infocard-tall'}):
        link = p.find('a', {'class': 'ent-name'}).get('href').split('/')[-1]
        pokemon.append(link.capitalize())
    pokemon.sort()
    for p in pokemon:
        f.write(p + '\n')

<mask token>
pokemon = []
with open('pokemon.txt', 'w') as f:
    url = 'http://pokemondb.net/pokedex/game/firered-leafgreen'
    soup = BeautifulSoup(r.get(url).text)
    all_pokemon = soup.find('div', {'class': 'infocard-tall-list'})
    for p in all_pokemon.find_all('span', {'infocard-tall'}):
        link = p.find('a', {'class': 'ent-name'}).get('href').split('/')[-1]
        pokemon.append(link.capitalize())
    pokemon.sort()
    for p in pokemon:
        f.write(p + '\n')

from bs4 import BeautifulSoup
import requests as r
pokemon = []
with open('pokemon.txt', 'w') as f:
    url = 'http://pokemondb.net/pokedex/game/firered-leafgreen'
    soup = BeautifulSoup(r.get(url).text)
    all_pokemon = soup.find('div', {'class': 'infocard-tall-list'})
    for p in all_pokemon.find_all('span', {'infocard-tall'}):
        link = p.find('a', {'class': 'ent-name'}).get('href').split('/')[-1]
        pokemon.append(link.capitalize())
    pokemon.sort()
    for p in pokemon:
        f.write(p + '\n')
