Skip to content

Instantly share code, notes, and snippets.

View FelixChop's full-sized avatar

Félix Revert FelixChop

View GitHub Profile
"http:" + soup.find('a', attrs={'rel':'next'}).get('href')
<a href="//bank-code.net/country/FRANCE-%28FR%29/15" data-ci-pagination-page="2" rel="next">&gt;</a>
result = pd.DataFrame([[td.text for td in row.findAll('td')] for row in table.tbody.findAll('tr')])
import bs4
soup = bs4.BeautifulSoup(page.content, 'lxml')
table = soup.find(name='table', attrs={'id':'tableID'})
import requests
url = "http://bank-code.net/country/FRANCE-%28FR%29/"
page = requests.get(url)
@FelixChop
FelixChop / element.html
Last active June 1, 2018 09:35
element.html
<table class="table table-hover table-bordered" id="tableID" style="margin-bottom: 10px;">
</table>