Python Forum
Extract tag body without leading/trailing spaces
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract tag body without leading/trailing spaces
#4
The problem is the 1st URL doesn't contain whole information, e.g. there is no Publisher.
That's why I proceed in two steps: 1st request - the book is searched by its ISBN, on the html page that opens I search for link to the html, dedicated to a particular book (note that 1st request doesn't provide "dedicated" page ... there are also other books on this html). Then using 2nd url (or book dedicated page) I search for all necessary info - title, author, publisher, year, ratings ...
Reply


Messages In This Thread
RE: Extract tag body without leading/trailing spaces - by Pavel_47 - Nov-26-2019, 08:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [BeautifulSoup] Find </body>? Winfried 3 1,386 Jul-21-2023, 11:25 AM
Last Post: Gaurav_Kumar
  Get html body of URL rama27 6 3,516 Aug-03-2020, 02:37 PM
Last Post: snippsat
  Django- Remove leading zeros in values from database ntuttle 1 3,513 Mar-07-2019, 07:30 PM
Last Post: nilamo
  Is it possible to perform a PUT request by passing a req body instead of an ID ary 0 1,847 Feb-20-2019, 05:55 AM
Last Post: ary
  In CSV, how to write the header after writing the body? Tim 18 14,780 Jan-06-2018, 01:54 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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