import requests
from bs4 import BeautifulSoup

def fetch_and_parse(url):
    response = requests.get(url)

    if response.status_code == 200:
        page_content = response.text
    else:
        print(f"Error: Unable to fetch the page. Status code: {response.status_code}")
        return

    soup = BeautifulSoup(page_content, "html.parse")
    return soup

def extract_moonarch_data(soup):
    # Extract the token title from the ‘h1’ tag
    token_title = soup.find("h1").text.strip()
    print(f"Token Title: {token_title}")

    # Extract the token description from the ‘h3’ tag
    token_description = soup.find("h3").text.strip()
    print(f"Token Description: {token_description}")

    # Locate the text elements containing token data
    token_data_elements = soup.find_all("div", class_="col-sm-6 col-md-3")

    # Extract and display the token data
    for element in token_data_elements:
        key = element.find("small").text.strip()
        value = element.find(class_="font-weight-bold").text.strip()
        print(f"{key}: {value}")

if __name__ == "main":
    url = "https://moonarch.app/token/0x70D6a53C38cD80935715c304535A0885cCe35db7"
    soup = fetch_and_parse(url)
    if soup:
        extract_moonarch_data(soup)
The code above displays information

C:\Users\AshotxXx\PycharmProjects\Parcing\pythonProject7\venv\Scripts\python.exe C:\Users\AshotxXx\PycharmProjects\Parcing\pythonProject7\main.py

Process finished with exit code 0
 it returned the name and symbol of the token.

These are the items in the Devtools tab

<html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><meta property="og:title" content="Moonarch.app - Crypto trading tools"><meta property="og:description" content="Rugcheck, token rankings, portfolio, miners, ROI dApps, farmers, whale watch, new tokens, locks, wallet content…"><meta name="description" content="Advanced trading tools for crypto on BSC: rugcheck, token rankings, wallet value, miners, ROI dApps, farmers, whale watch, new tokens, locks…"><meta property="og:image" content="https://moonarch.app/twittercard.png"><meta property="og:url" content="https://moonarch.app"><meta property="og:site_name" content="Moonarch.app"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image:alt" content="Moonarch.app dashboard: there are cards for token rankings, wallet content, new events about tokens and about whale users you can follow."><meta name="twitter:site" content="@MoonarchApp"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400&amp;display=swap"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=1"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=1"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=1"><link rel="manifest" href="/site.webmanifest?v=1"><link rel="mask-icon" href="/safari-pinned-tab.svg?v=1" color="#ffd700"><link rel="shortcut icon" href="/favicon.ico?v=1"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><title>中文 - Zhongwen - Moonarch BSC crypto trading tools - Binance Smart Chain</title><link href="/css/index.dd0591f5.css" rel="preload" as="style"><link href="/js/index.179f5ee5.js" rel="modulepreload"