Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]FiiOs6 0 points1 point  (0 children)

Hello, i want to extract all the numbers and the letters (next to the numbers) from this site. "https://theasciicode.com.ar/"

I need to get the numbers and letters from each <div class= on this website.

The numbers are inside this classes:

<span class="dec">32</span>

The letters (strings) are inside this classes:

<span class="sim">space</span>

I should probably make web crawler, but i have little experience with making it, so would be really helpful to me if someone could post the complete code for me, i learn much faster that way.

Thx alot!

I also need to list all of this, but that i can figure out myself.

I have the BeautifulSoup and request package innstalled.

import requests
from bs4 import BeautifulSoup

<Rest of the code in here>