[Python] Can someone help me access a link from a web page using Python?

Discussão em 'Python' iniciado por Stack, Junho 8, 2025.

  1. Stack

    Stack Membro Participativo

    Specifically, I'm trying to extract the link to the screenwriter's page from a Rotten Tomatoes movie page. So for example, from https://www.rottentomatoes.com/m/dangerous_animals, I'm trying to get https://www.rottentomatoes.com/celebrity/nick_lepard. You have to scroll down the page a little and it's under Movie Info.

    I've used BeautifulSoup to pull some other cast links from the page, but can't figure out how to access the screenwriter link. The section with the link I'm trying to get has a bunch of divs and tags with the same IDs, so I couldn't figure out how to single it out.

    Continue reading...

Compartilhe esta Página