|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 616
Karma: 85520
Join Date: May 2021
Device: kindle
|
How to get Business Standard to work, when it needs to fetch from a script
the whole content is present in this part of html/script. With article body, headline, author, ,image link, etc all present within this script.
Feeds are plenty available. Code:
<script type="application/ld+json"> [{ "@context": "http://schema.org", "mainEntityOfPage":{ "@type":"WebPage", "@id":"https://www.business-standard.com/article/finance/banks-told-to-tighten-monitoring-have-ironclad-kyc-to-avoid-new-jamtara-122021601581_1.html" }, "@type": "NewsArticle", "url": "https://www.business-standard.com/article/finance/banks-told-to-tighten-monitoring-have-ironclad-kyc-to-avoid-new-jamtara-122021601581_1.html", "articleBody":" The alarming increase in online frauds in recent times has prompted the regulator to ask commercial banks to shore up monitoring and make know-your-customer (KYC) credentials ironclad before opening accounts in specific districts of concern across the country. Bankers said the home ministry may have received inputs on areas from where these fraudsters operate in and sounded off the regulator on the need for reassessing KYC documentation. “The regulator has highlighted some jurisdictions where phishing is rampant. It said banks need to be watchful, monitor, insist on inflexible KYC verification, and further re-examine credentials belonging to geographical locations of concern,” said a senior public sector banker. “The perils of this nature will only increase with increased digitisation, availability of data, and exponential growth of financial technology (tech),” said another senior banker. “The digital and tech ecosystems are evolving every day, and the industry has been plagued by individuals trying to defraud companies and unsuspecting citizens. While there are many cases of fraudsters taking advantage of people who mistakenly share credentials and OTPs of their own volition, cases of identity theft are on a steady rise. Our risk management and tech teams have been on overdrive, constantly building more robust systems to try and keep such activities at bay,” said the spokesperson.", "articleSection":"Finance", "headline": "Banks told to tighten monitoring, have ironclad KYC to avoid new Jamtara", "author": "Manojit Saha", "datePublished": "2022-02-17T06:05:00+05:30", "dateModified": "2022-02-17T09:13:59+05:30", "image":{ "@context": "http://schema.org", "@type": "ImageObject", "width": "100px", "height": "100px", "url":"https://bsmedia.business-standard.com/_media/bs/img/article/2021-05/09/full/1620576306-5391.jpg" }, "publisher":{ "@context": "http://schema.org", "@type": "Organization", "name": "Business Standard", "logo": { "@context": "http://schema.org", "@type": "ImageObject", "width": "100px", "height": "100px", "url": "https://bsmedia.business-standard.com/_media/bs/wap/images/bs_logo_amp.png" }, "url":"https://www.business-standard.com" }, "isAccessibleForFree": "False", "hasPart": { "@type": "WebPageElement", "isAccessibleForFree": "False", "cssSelector" : ".paywall" } }] </script> |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You use the json module ot parse thta data and convert it to html in the preprocess_raw_html() function. There are many existing recipes that do this. Just search for json in the builting recipes. For example economist.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 616
Karma: 85520
Join Date: May 2021
Device: kindle
|
I did check out the economist .. twas very complex, i will try again.
Maybe if there's something that's less complex. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All you need is something like this in preprocess_raw_html
Code:
soup = self.index_to_soup(raw) script = soup.find('script', type="application/ld+json") data = json.loads(str(script.contents[0])) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using fetch-ebook-metadata from a python script | Terry Brown | Server | 2 | 02-17-2022 08:31 AM |
Recipe request for Business Standard with Login | mixedbaba | Recipes | 3 | 02-16-2019 12:19 AM |
Script to fetch & send to Kindle (Mac/Linux) | clanger9 | Calibre | 5 | 07-10-2012 05:47 AM |
Update script does not work | rusHack | Kindle Developer's Corner | 9 | 06-21-2012 08:55 PM |
Fetch Annotations does not work with K3 | enigma2k | Calibre | 5 | 09-23-2010 10:26 AM |