I'm new to python and I'm trying to understand BeautifulSoup.
I did this code it works but not the way I want:
for abc in soup.findAll(['p',{'a':re.compile('href="/download/*')}]):
value=abc.text
print value
The page multiple "blocks" as this one:
<div class="">
<div class="ABC">
<p>
<a href="/download/1234/abcde/fghij">String1</a>
</p>
<p class="data">
String2 <a href="/user/4649/abc">String3</a> String2
</p>
</div>
<img src="/img/abc.png" alt="String4" title="String5" />
</div>
I want to read all this "blocks" and convert to a dictionary(?):
[Link'/download/1234/abcde/fghij', Name'String1', User'String3', alt'String4, title'String5']
With this I can search for Name and get the Link