Scraping Data from a Real Website | Web Scraping in Python

Scraping Data from a Real Website | Web Scraping in Python

Alex The Analyst

10 месяцев назад

327,911 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Vian R Deksono
Vian R Deksono - 02.10.2023 12:26

thank you so much, super helpful

Ответить
hamilton mora
hamilton mora - 02.10.2023 01:13

Nice

Ответить
Treasure I-net
Treasure I-net - 28.09.2023 16:31

Exceptionally outstanding content. Hats off to Alex. Just one question can we instead of saying

column_data = table.find_all('tr')

we say,

rows = table.find_all('tr')

as in your words r-row. I know we can name variables by any name but I want to be logically correct. Will it(rows) be logically incorrect?

and while fetching 'td' we will save it in row_data variable. Will it be correct?

Ответить
dhanie nugroho
dhanie nugroho - 28.09.2023 09:58

Thanks for the tutorial! I just found the channel and I like the way you explain it!

Ответить
Pavithra C
Pavithra C - 27.09.2023 17:17

Heya... Ur videos are excellent and i have learned a lot from it... But in this web scraping... I got an error as --cannot set a row with mismatched columns... I have checked your other videos... could you please help me on that.

Ответить
Wes rocha
Wes rocha - 26.09.2023 02:52

Amazing, thanks!

Ответить
PrezGrounds
PrezGrounds - 24.09.2023 22:29

Thanks for this video helped me a lot. When I tried to pull the table headers only worked with tr not th. This might help others with the same issue

Ответить
Mudassar Ali
Mudassar Ali - 23.09.2023 19:46

Excellent Work Sir!!! I really Appreciated your work believe me You are a great mentor!

Ответить
ParthYT
ParthYT - 23.09.2023 16:13

Hey Alex, thank you so much for ur effort,,,its a really super helpful series 🙏

Ответить
Lily Fullery
Lily Fullery - 19.09.2023 08:56

U r the best ❤

Ответить
visiv
visiv - 18.09.2023 23:24

Nice tutorial, but there are AI tools now like Kadoa that can do all of this for you. In the time it takes for you to watch this video, you can get an AI scraper up and running.

Ответить
Lallie Hayes
Lallie Hayes - 18.09.2023 16:38

What benefits does scraping using Python have over Power BI or Power Query?

Ответить
Glory Rome Zeus
Glory Rome Zeus - 16.09.2023 16:50

This was from the Greatest Videos I have Ever seen Thank you! Very Much! 🙃🙃🙃🙃🙃🙃😊

Ответить
Yunus Aprianus
Yunus Aprianus - 14.09.2023 12:39

I'm done with the tutorial today and end with awesome successful, i'm facing some trouble since i use different site but yeah, my scraping going well!

Thank you so much!

Ответить
chidi nwosu
chidi nwosu - 13.09.2023 11:58

please where did the title come from in the title.text

Ответить
RC
RC - 12.09.2023 21:42

Hi ! How do you get to using this web interpreter ? Are there tutorials ? I was looking but I couldn't find any not knowing what it actually is

Ответить
gh
gh - 10.09.2023 03:22

hi what are you using to type in? how do i open that "python resources tab /page?
where do i find that sheet to type in (the white sheet your typing the code in?

Ответить
Khang Lee
Khang Lee - 09.09.2023 07:33

Hi guys, i'm here to asking about when i export the lastest data to csv, it went from beautiful visual in panda to ugly data in csv, how can Alex export the beautiful one to csv at last ? Pls help me

Ответить
Toni Ivanov
Toni Ivanov - 08.09.2023 15:24

just copy paste the html to chatgpt and ask it to do it for you bro

Ответить
Janani Teklur Srinivasa
Janani Teklur Srinivasa - 08.09.2023 00:30

Thank You so so much for this video, Alex! It was super useful and easy to follow!

Ответить
Jeet Shah
Jeet Shah - 05.09.2023 12:10

Thanks alot Alex it helped me alot to explore this Webscraping and thanks for making this interesting and on point

Ответить
Jorge Torres
Jorge Torres - 05.09.2023 09:07

I saw all the videos for this playlist and I am getting to this last one, I haven't felt so happy to learn in a while, thank you for your work and help!

Ответить
kaka moora
kaka moora - 04.09.2023 22:05

Bro time changed 😂.. but you a teaching old method 😢

Ответить
CanterOn!
CanterOn! - 04.09.2023 19:45

Thank you for doing this Alex. I learned a lot and followed along while watching this series so that I could learn how to do this as well. Now all I need to do is practice, practice, practice.

Ответить
Gabin Kundwa
Gabin Kundwa - 02.09.2023 06:11

Thank you Alex, I am new to web scrapping and this video was helpful to me! Keep the good work!

Ответить
Cleberson Osorio
Cleberson Osorio - 30.08.2023 16:41

Excellent tutorial, what would be this environment you are running?

Ответить
Pritam Laskar
Pritam Laskar - 30.08.2023 07:57

Thank you so much! Very clear and well explained!

Ответить
Ivan Kostikov
Ivan Kostikov - 28.08.2023 06:23

Hi!
isn't it easier to do everything through "read_html"?

pd.read_html(url)[1]

Ответить
Abutalha
Abutalha - 24.08.2023 16:43

1000th like from me 😅

Ответить
A Biol
A Biol - 22.08.2023 18:26

Hi Alex, I need help scrapping some date from a website but it's been super challenging. Would you be able to help? Once I have an example I should be able to run from there. Thanks a lot.

Ответить
Top10_Entertainment
Top10_Entertainment - 19.08.2023 17:57

I need help this isnt working for me.......

Ответить
Sting Ray
Sting Ray - 18.08.2023 07:26

Great video. Thank you...

Ответить
Cloudel Laureta
Cloudel Laureta - 14.08.2023 04:03

I think the jquery class is javascript, and the site also uses bootstap for their class.

Ответить
Bamidele_ebamy
Bamidele_ebamy - 11.08.2023 12:30

Thank you Alex Frebeg ❤❤

Ответить
Sai Manisha
Sai Manisha - 11.08.2023 01:20

Make videos on artificial intelligence

Ответить
Daksh Bhatnagar
Daksh Bhatnagar - 09.08.2023 18:09

Hey Alex, Can you do a selenium scraping tutorial? It would help a lot to scrape dynamic websites.

Ответить
Martin Ologunja
Martin Ologunja - 08.08.2023 16:06

Alex telling us he loves us 🥹

Ответить
Hoover Zavala
Hoover Zavala - 08.08.2023 13:56

The real problem is to access websites that detects me as webscraper, do you have a tuto abouit this issue?

Ответить
Mostafa Alghool
Mostafa Alghool - 07.08.2023 03:06

I tried this for the rows but id displays as one row


['1', 'Walmart', 'Retail', '611,289', '6.7%', '2,100,000', 'Bentonville, Arkansas', '2', 'Amazon', 'Retail and Cloud Computing', '513,983', '9.4%', '1,540,000', 'Seattle, Washington', '3', 'Exxon Mobil', 'Petroleum industry', '413,680', '44.8%', '62,000', 'Spring, Texas', '4', 'A


how can I make it row by row

Ответить
Ultimate Gohan
Ultimate Gohan - 04.08.2023 09:08

Thanks Alex

Ответить
Mike G
Mike G - 01.08.2023 11:10

I found out why the class names were different. It seems to be a common issue. Someone explained it on Stack Overflow,
"The table class wikitable sortable jquery-tablesorter does not appear when navigating the website until the column is sorted. I was able to grab exactly one table by using the table class wikitable sortable."

Ответить
Cristian Andrade
Cristian Andrade - 31.07.2023 23:04

On the "Revenue growth" column, might be important to notate the sign of the growth (positive or negative one).
I found a workaround for this:

revenueGrowth = []
table = soup.find('table', class_='wikitable')
data = table.find_all('td')

for x in data:
if 'Decrease2.svg.png' in str(x):
decreasedGrowth = '-' + str(x.text.strip())
revenueGrowth.append(decreasedGrowth)

Ответить
prem patkar
prem patkar - 31.07.2023 17:37

Hey Alex,
It was a great video and I did find it to be very helpful and intresting . I would like to ask one question can we also do it for the second table and can we get the same table under the same excel csv file?

Ответить
PhilippH
PhilippH - 31.07.2023 14:59

I appreciated you, I love you 😂❤

Ответить
Yoshita Manavi
Yoshita Manavi - 28.07.2023 01:39

I just have one comment, You are the best Alex 🤩

Ответить
Ibikunle Adekiitan
Ibikunle Adekiitan - 27.07.2023 13:17

Thanks Alex for making me a great value to the world

Ответить
Anochie Tobechukwu
Anochie Tobechukwu - 26.07.2023 22:23

Hi Alex,
Can you try scraping ycombinator directory site, its proven to be very difficult.

Ответить