Python Web Scraping: JSON in SCRIPT tags

preview_player
Показать описание
This video covers a simple and easy way to web scrape with python by getting the data out in JSON format from the HTML script tags. This inline JSON is common place on lots of websites and can be used to our advantage in just a few lines of code!

-------------------------------------
-------------------------------------
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
-------------------------------------

Sound like me:

-------------------------------------

Video like me:
-------------------------------------

PC Stuff:
Рекомендации по теме
Комментарии
Автор

Great video. Clear and concise. Been searching high and low, for ages, for a tutorial showing how to find my way down the tree to the data I wanted in a JSON object. Learnt a lot from this. Superb!! Deserves way more 'Likes' than it has.

boeingpete
Автор

just in case anyone else has the same issue I did. Sometimes when using '.text' to gather the text it returns no text at all. Instead you must use '.string' and you can still use '.strip()' with that if needed. I'm not a professional so I have no idea why that happens, but there you go :)

KickAssRedBeard
Автор

Nice content and amazing video John Bro, I learn multiple things from this video, especially getting JSON data from scriptTag. Thanks for making this type fruitful content

malwaredev
Автор

Thanks alot John spent hours getting error until i saw your video ..you gained a subscriber

hachinyesom
Автор

THANKS MAN!! Finally something that is straightforward and works!!

suyash.
Автор

Helped me through a challenging project. Thank you

kennyBrodriguez
Автор

Thanks mate, saved me from messing up my uni project

mgd
Автор

Thankyou so much sir. I don't know how to thank you.. I've been waiting this video for so long.. A big fan from Philippines❤❤❤. Please keep on creating great content like this

martpagente
Автор

This video helped me a lot. Thanks John I appreciate it.

ghaithmoe
Автор

You've just saved me lots of time - and a huge headache. Thank you.

dabisbesh
Автор

It really helped me a lot. Thanks for posting it.

nomcognom
Автор

Thank you so much ! this was exactly what I was looking for

lesterwood
Автор

Thanks for the tutorial. Very helpful!

SamKsl-yqkn
Автор

Thank you so much. You save me. Really helpful video !!🤩

KIMIKful
Автор

one of the best videos, I had the same problem, thanks a lot!

gitgosc
Автор

thankyou so much this is what i am looking for!

fathan
Автор

6:00 you can also use the replace method and replace the whole 58 letter string with "". Would have saved you the effort of counting :)

dhyeyadesai
Автор

loved it bro...your explaination is so intuitive..thanks a ton .man

mdfaiz
Автор

Thank you very much. It was very useful.

thedestroyer
Автор

Thanks a lot, sir. It helped me a lot

siyamahmed