News for hackers. Stuff that matters.

deathemperor

just curious: what do you use to convert web pages to pdf?
Re:Akira Toriyama has died on Friday March 08, 2024 @03:39AM (#39639123)
from my perspective of someone from Southeast Asia, Son Goku is definitely Sun Wukong the Monkey King from Journey To The West

https://en.wikipedia.org/wiki/Monkey_King

I'm a software engineer working in the insurance industry in Vietnam. The company provides claims service (TPA) for insurers. I find the conversation super interesting as our healthcare and insurance system share the same problems with the US (everywhere else too I think). I'm super excited that my work piece by piece improve the industry one way or another.
Nextjs deployed on Vercel Hasura with Postgres Apollo server deployed on Lambda using serverless framework.
Re:SvelteKit 1.0 on Saturday December 17, 2022 @01:31AM (#34025401)
Same here. I use Apollo Client. React. Hasura
Re:Code Red: The Business Impact of Code Quality on Saturday October 29, 2022 @03:28AM (#33381841)
I’ve just tested it out with our code base and it’s pretty impressive providing very useful intelligence of my team. Codescene provides metrics like he wrote in the post and many more.
My mind is blown. Thanks for sharing. Especially with the movie analogy. I’m a very movie person and I imitate my personality traits a lot based on characters on movies…
Re:Show HN: I make $3K/mo from a browser extension on Wednesday January 05, 2022 @02:29AM (#29806169)
congratz on the success of new launch, Trung.
Re:A digital museum of video game levels on Wednesday July 21, 2021 @11:51PM (#27915145)
The Zanarkand brings back so much memories I've spent hundreds of hours with
Re:Automated Hydroponic System Build (2020) on Monday July 12, 2021 @10:33PM (#27817139)
thanks for the sources. I'll be digging deeper.
Re:Automated Hydroponic System Build (2020) on Monday July 12, 2021 @10:59AM (#27810948)
interesting. could you point to more details? I'd like to know more since I'm a fish breeder and a lot of fishes need a controlled environment for breeding.
Re:Ask HN: What are best tools for web scraping? on Tuesday November 14, 2017 @10:49PM (#15701320)
I signed up for proxycrawl, used the javascript api to access a SPA website written in React and it just show a blank page. https://api.proxycrawl.com/?token=aDcC1lB-NZ5_r4vMSN-L3A&url... (I don't mind my token is exposed)
Re:Ask HN: What are best tools for web scraping? on Tuesday November 14, 2017 @10:17PM (#15701211)
I've just finished my research on web scraping for my company (took me about 7 days). I started with import.io and scrapinghub.com for point and click scraping to see if I could do it without writing codes. Ultimately, UI point and click scraping is for none-technical. There are many data you would find it hard to scrape. For example, lazada.com.my stores the product's SKU inside an attribute that looks like <div data-sku-simple="SKU11111"></div> which I couldn't get. import.io's pricing is also something. I need to pay $999 a month for accessing API data is just too high.

So I decided to use scrapy, the core of scrapinghub.com.

I haven't written much python before but scrapy was very easy to learn. I wrote 2 spiders and run on scrapinghub (their serverless cloud). Scrapinghub support jobs scheduling and many other things at a cost. I prefer scrapinghub because in my team we don't have DevOps. It also supports Crawlera to prevent IP banning, Portia for point and click (still in beta, it was still hard to use), and Splash for SPA websites but it's buggy and the github repo is not under active maintenance.

For DOM query I use BeautifulSoup4. I love it. It's jQuery for python.

For SPA websites I wrote a scrapy middleware which uses puppeteer. The puppeteer is deployed on Amazon Lambda (1m free request first 365 days, more than enough for scraping) using this https://github.com/sambaiz/puppeteer-lambda-starter-kit

I am planning to use Amazon RDS to store scraped data.