Jason is a Pokémon fan. His dream is to be a Pokémon master, but his Pokémon illustration book missed a few generations. Please help him to get all of the pictures by crawler on the Pokémon official website, which is missed in his book.
輸入說明 Input Description:
請使用下面的網址抓取第1、5、7世代的所有圖片。
Please use the following link to get all of the pictures in generation 1, 5, 7.
Please download each picture into the folder which name is the corresponding generation no. and the picture name format must be ID Number_Name_Attribute.png. Besides, please use _ to separate each attribute if there are multiple attributes. If there are some weird symbols in its name except ., like :,\, etc, please remove it.
Please check whether there is a folder of Pokemons in the current path, and there are folders of Generation_1, Generation_5, and Generation_7 in it. If not, add them. In addition, please create folders and save files according to the structure shown in the figure below.
請使用 beautifulsoup library 搭配 lxml 來爬資料。
Please use beautifulsoup library and lxml to do web scraping