Live data from Hacker News

Web Scraping 101 with Python

scrapingbee.com

131–134 of 134 posts

Re: Web Scraping 101 with Python

#131
post #73

Earlier quoted context omitted.

It gets more complicated when you need to leverage real browser engines (eg Chrome). I've got jobs spread across ~ 20 machines/ 140 concurrent browser instances, it's non-trivial.

How many pages can you render in a a second per vcpu core ?

I'm measuring tracking so I need to have the page semi-idle while trackers show up, so it's both speed and allowing some waiting-around-time.

Re: Web Scraping 101 with Python

#132
post #108

One thing I notice with all blog articles, and HN comments, on scraping is that they always omit the actual use case, i.e., the specific website that someone is trying to scrape. Any examples tend to be so trivial as to be practically meaningless. They do not prove anything. If authors did name websites they wanted to scrape, or show tests on actual websites, then we might see others come forward with different solut…

I'm just curious if you have any particular use cases you can't get the existing solutions to work with

I do not have any particular use cases that I cannot get my own solutions to work with. Thus I have no motivation to try these Python solutions. That is why I would be curious to have an example use case that someone thought could only be handled by some Python framework.

Re: Web Scraping 101 with Python

#133

Before jumping into frameworks, if your data is lucky enough to be stored in an html table: import pandas as pd dfs = pd.read_html(url) Where ‘dfs’ is an array of dataframes - one item for each html table on the page. https://pandas.pydata.org/pandas-docs/stable/reference/api/p...

We made a chrome extension that queries any html table in any open tab with SQL:

https://chrome.google.com/webstore/detail/sqanything/naejbcf...

You can export the results to Google Sheets too. One advantage of the extension is it works with JS rendered tables.

Post reply on HN