import requests
from bs4 import BeautifulSoup
from fpdf import FPDF

def scrap_pokemon_list():
    url = "https://pokelife.pl/pokedex/index.php?title=Lista_Pokemon%C3%B3w_Kanto"
    response = requests.get(url)
    # print(response)
    soup = BeautifulSoup(response.content, 'html.parser')
    pokemons_list = []
    table = soup.find('table', class_ ='Tabela1')
    rows = table.find_all('tr')
    for row in rows[1:]:
        columns = row.find_all('td')
        pokemon = (columns[2].text[:-1], f"No.{columns[0].text[:-1]}")
        pokemons_list.append(pokemon)
    pokemons_without_mega = (pokemon for pokemon in pokemons_list if "Mega" not in pokemon[0])
    return pokemons_without_mega


pokemon_list = scrap_pokemon_list()

def get_pokemon_info(pokemon_name):
    