• [^] # Re: me suis trompé de bouton >_<

    Posté par (site web personnel, Mastodon) . En réponse au journal Liste des articles gratuits des Editions Diamond. Évalué à 2.

    La ligne paywall = "is_locked_icon" in title_node.attrs["class"] dans ce bloc

     # Search the articles
     for node in issue_soup.select(".view-display-id-block_7 .view_inner"):
     # Extract infos from articles
     url_node = node.select(".views-field-title a")[0]
     url = url_node.attrs["href"]
     title_node = url_node.select(".views-field-title a span")[0]
     title = title_node.text
     paywall = "is_locked_icon" in title_node.attrs["class"]
     author = node.select(".views-field-field-ct-article-authors a")[0].text
     yield title, author, paywall, url

    Il faut se référer à l'analyse des pages faite dans l'autre journal.

    "It is seldom that liberty of any kind is lost all at once." ― David Hume