Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Table data with BeatifulSoup
#5
Thanks Larz60+! I was able to run the code successfully only the table seems to be the wrong one.
It parses through the first table with all the different languages instead of the table with the rates.
How can I tweak the code to jump to the right table?

Output:
------------------------------ tr_0, td_0 ------------------------------ <bound method Tag.prettify of <td> <table cellpadding="0" cellspacing="0" style="width:100%;margin:10px 0px 0px 0px;"> <tr> <td> <img alt="" src="//www.global-rates.com/images/misc/ittybittyclear.gif" style="margin:3px 4px 3px 0px;"/> </td> <td align="right" valign="bottom"> <a href="//www.global-rates.com/"><img alt="English - worldwide actual interest rates and economic indicators" border="0" src="//www.global-rates.com/images/misc/gb.gif"/></a>   <a href="//nl.global-rates.com/"><img alt="Nederlands - actuele, internationale rentetarieven en economische indicatoren" border="0" src="//www.global-rates.com/images/misc/nl.gif"/></a>
Reply


Messages In This Thread
Table data with BeatifulSoup - by gerry84 - Sep-24-2019, 04:17 PM
RE: Table data with BeatifulSoup - by buran - Sep-24-2019, 04:34 PM
RE: Table data with BeatifulSoup - by gerry84 - Sep-24-2019, 04:38 PM
RE: Table data with BeatifulSoup - by Larz60+ - Sep-24-2019, 04:57 PM
RE: Table data with BeatifulSoup - by gerry84 - Sep-24-2019, 05:30 PM
RE: Table data with BeatifulSoup - by metulburr - Sep-24-2019, 07:19 PM
RE: Table data with BeatifulSoup - by gerry84 - Sep-24-2019, 08:07 PM
RE: Table data with BeatifulSoup - by gerry84 - Sep-24-2019, 10:48 PM
RE: Table data with BeatifulSoup - by gerry84 - Oct-22-2019, 06:00 PM
RE: Table data with BeatifulSoup - by Larz60+ - Oct-22-2019, 06:09 PM
RE: Table data with BeatifulSoup - by gerry84 - Oct-22-2019, 09:03 PM
RE: Table data with BeatifulSoup - by Larz60+ - Oct-23-2019, 10:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Scraping data from table into existing dataframe vincer58 1 2,028 Jan-09-2022, 05:15 PM
Last Post: vincer58
  Inserting data from a table to another (in same db) firebird 5 2,501 Oct-05-2020, 06:04 AM
Last Post: buran
  Extract data from a table Bob_M 3 2,700 Aug-14-2020, 03:36 PM
Last Post: Bob_M
  Scraping a dynamic data-table in python through AJAX request filozofo 1 3,897 Aug-14-2020, 10:13 AM
Last Post: kashcode
  Want to scrape a table data and export it into CSV format tahir1990 9 5,299 Oct-22-2019, 08:03 AM
Last Post: buran
  Using flask to add data to sqlite3 table with PRIMARY KEY catafest 1 3,752 Sep-09-2019, 07:00 AM
Last Post: buran
  sqlalchemy DataTables::"No data available in table" when using self-joined table Asma 0 2,593 Nov-22-2018, 02:46 PM
Last Post: Asma
  beatifulsoup scrap td tag. piuk3man 1 3,887 Jun-11-2018, 06:16 AM
Last Post: buran
  Insert data in a table after a user is created from djando admin prithvi 0 3,554 Aug-11-2017, 06:25 PM
Last Post: prithvi
  Installation of bs4 and BeatifulSoup landlord1984 7 8,755 Jan-09-2017, 07:41 AM
Last Post: landlord1984

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020