'Issues with BeautifulSoup on Python - Attribute Error

I'm just trying to do a telegram bot which sends me updates about the floor price of a NFT project. I tried with BeautifulSoup to scrape the floor price with the following code:

    from urllib.request import urlopen
    from bs4 import BeautifulSoup
    import requests
    import urllib.request
    
    url = "https://magiceden.io/marketplace/bulldog_billionaires"
    
    response = requests.get(url)
    
    
    soup = BeautifulSoup(response.text, 'html.parser')
    
    result = soup.find("div", {"p-3 bg-color-third d-flex flex-column border-radius-8px h-100 position-relative attributes-main"})
    print(result.title)

But it always gives me the following error: "AttributeError: 'NoneType' object has no attribute 'title'"

Can anybode help me to solves this problem? I have to keep a eye on this NFT project so I need this bot!

I thank everyone!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source