HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sunshadow

no profile record

comments

sunshadow
·letztes Jahr·discuss
Too late, we all went to cursor.
sunshadow
·vor 2 Jahren·discuss
I can make this in couple of weeks, but I need an incentive other than just having fun
sunshadow
·vor 2 Jahren·discuss
What made you use caddy in front of tiny-http? I guess tiny-http should be still fine on its own. genuinely curious
sunshadow
·vor 2 Jahren·discuss
They made 11B$ last year. It has incredible amount of ads. If you haven't noticed, then that means they did a great job. (tip: look for the custom logo pins in the map. Its printing money)
sunshadow
·vor 2 Jahren·discuss
According to the license, this repo is not that different than me just extracting the source code from the binaries. Pass.
sunshadow
·vor 2 Jahren·discuss
There is no difference between this and a well known bot prevention mechanism, from the scraper perspective.
sunshadow
·vor 2 Jahren·discuss
I don't see any difference than browserless?
sunshadow
·vor 3 Jahren·discuss
If you're looking for open-source function calling: Checkout Functionary: https://github.com/MeetKai/functionary/

It's MIT licensed. Supports both CPU and GPU
sunshadow
·vor 3 Jahren·discuss
Yes, Functionary: https://github.com/MeetKai/functionary/ MIT Licensed

Its actively maintained as open-source. You can even run it with llama.cpp
sunshadow
·vor 3 Jahren·discuss
Original project: https://github.com/xenova/transformers.js
sunshadow
·vor 3 Jahren·discuss
Unless you start a war against scrapers, you don't need to worry about that as I'll always find a way to scrape your site as long as its valuable to 'me'. Even if it requires Real browser + OCR :)
sunshadow
·vor 3 Jahren·discuss
Crul looks nice, though, you cannot imagine how many startups that I've seen failed doing a very similar thing as Crul. Wouldn't rely on it. The problem is complex: Humans generating messy pages
sunshadow
·vor 3 Jahren·discuss
You don't use XPath&CSS selectors at all (Except if you dont have choice). You rely on more generic stuff, e.g, "the button that has 'Sign in' on it":

    await page.getByRole('button', { name: 'Sign in' }).click();
See playwright locators: https://playwright.dev/docs/locators
sunshadow
·vor 3 Jahren·discuss
These days, I'm not even using Go for scraping that much, as the webpage changes makes me crazy and JS code evaluation is a lifesaver, so I moved to Typescript+Playwright. (Crawlee framework is cool, while not strictly necessary).

Its been 8+ years since i started scraping. I even wrote a popular Go web scraping framework previously: (https://github.com/geziyor/geziyor).

My favorite stack as of 2023: TypeScript+Playwright+Crawlee(Optional) If you're serious in scraping, you should learn javascript, thus, playwright should be good.

Note: There are niche cases where lower-level language would be required (C++, Go etc), but probably only <%5
sunshadow
·vor 3 Jahren·discuss
It would be nice to see it open source. As im concerned about the privacy policy as its a really valuable information
sunshadow
·vor 3 Jahren·discuss
Give it 1 year
sunshadow
·vor 3 Jahren·discuss
But its too expensive to become practical with the OpenAI API. Also, demo is cool until you see the real-world webpages, then you'll realize that this only works less than %50 of webpages.
sunshadow
·vor 3 Jahren·discuss
You're good until this is cheaper than your salary.
sunshadow
·vor 3 Jahren·discuss
I don't understand why people still spend time on jailbreaks of the proprietary models, while they can easily use uncensored open-source models these days. I feel like its kind of waste of time.
sunshadow
·vor 3 Jahren·discuss
Unfortunately its gonna be abused like hell so you'll end up shutting it down or requiring API keys for each one of them :(