I want to scrape following webpage (it is allowed..):
https://www.bisafans.de/pokedex/listen/numerisch.php
the aim is to extract a table like following:
| number | name | type1 | type2 |
|---|---|---|---|
| 001 | Bisasam | Pflanze | Gift |
| 002 | ... | ... | ... |
I was able to scrape the number and name of the table but I have problem to extract the types since they are hidden as an image title:
>img src="https://media.bisafans.de/f630aa6/typen/pflanze.png" alt="Pflanze"<
How can I extract the name after alt? I already tried it with extracting the whole table, which only extracts numbers and names. Another approach was the html_attr(), but doesn't work either.
Does someone know how I can achieve this?