<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I scrape the name/text of the hyperlinks using python? in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/how-do-i-scrape-the-name-text-of-the-hyperlinks-using-python/m-p/4571444#M1088319</link>
    <description>&lt;P&gt;I wanted to extract the name of the links from this URL&lt;A href="https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html" target="_self"&gt;&amp;nbsp;https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html-&lt;/A&gt;&lt;A href="https://www.blackshowhair.com/collections/613-blonde-hair" target="_self"&gt;wigs&lt;/A&gt;&lt;A href="https://www.ourmarriagedate.com/" target="_self"&gt;-date&lt;/A&gt; however, I can't move on to the next step. below is my code so far&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; requests &lt;SPAN class=""&gt;as&lt;/SPAN&gt; re
&lt;SPAN class=""&gt;from&lt;/SPAN&gt; bs4 &lt;SPAN class=""&gt;import&lt;/SPAN&gt; BeautifulSoup

URL = &lt;SPAN class=""&gt;"https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html"&lt;/SPAN&gt;
page = re.get(URL)
soup = BeautifulSoup(page.content, &lt;SPAN class=""&gt;"html.parser"&lt;/SPAN&gt;)
results = soup.find(class_=&lt;SPAN class=""&gt;"post altr"&lt;/SPAN&gt;)

&lt;SPAN class=""&gt;for&lt;/SPAN&gt; result &lt;SPAN class=""&gt;in&lt;/SPAN&gt; results:
    &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(result)&lt;/PRE&gt;&lt;P&gt;I still don't know how to go to the next step. Any help is very much appreciated. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 10:03:21 GMT</pubDate>
    <dc:creator>round1extra</dc:creator>
    <dc:date>2022-03-16T10:03:21Z</dc:date>
    <item>
      <title>How do I scrape the name/text of the hyperlinks using python?</title>
      <link>https://community.cisco.com/t5/network-security/how-do-i-scrape-the-name-text-of-the-hyperlinks-using-python/m-p/4571444#M1088319</link>
      <description>&lt;P&gt;I wanted to extract the name of the links from this URL&lt;A href="https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html" target="_self"&gt;&amp;nbsp;https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html-&lt;/A&gt;&lt;A href="https://www.blackshowhair.com/collections/613-blonde-hair" target="_self"&gt;wigs&lt;/A&gt;&lt;A href="https://www.ourmarriagedate.com/" target="_self"&gt;-date&lt;/A&gt; however, I can't move on to the next step. below is my code so far&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; requests &lt;SPAN class=""&gt;as&lt;/SPAN&gt; re
&lt;SPAN class=""&gt;from&lt;/SPAN&gt; bs4 &lt;SPAN class=""&gt;import&lt;/SPAN&gt; BeautifulSoup

URL = &lt;SPAN class=""&gt;"https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html"&lt;/SPAN&gt;
page = re.get(URL)
soup = BeautifulSoup(page.content, &lt;SPAN class=""&gt;"html.parser"&lt;/SPAN&gt;)
results = soup.find(class_=&lt;SPAN class=""&gt;"post altr"&lt;/SPAN&gt;)

&lt;SPAN class=""&gt;for&lt;/SPAN&gt; result &lt;SPAN class=""&gt;in&lt;/SPAN&gt; results:
    &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(result)&lt;/PRE&gt;&lt;P&gt;I still don't know how to go to the next step. Any help is very much appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 10:03:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/how-do-i-scrape-the-name-text-of-the-hyperlinks-using-python/m-p/4571444#M1088319</guid>
      <dc:creator>round1extra</dc:creator>
      <dc:date>2022-03-16T10:03:21Z</dc:date>
    </item>
  </channel>
</rss>

