Commit Graph

36 Commits

Author SHA1 Message Date
Gergő Móricz 8d467c8ca7 WebScraper refactor into scrapeURL (#714)
* feat: use strictNullChecking

* feat: switch logger to Winston

* feat(scrapeURL): first batch

* fix(scrapeURL): error swallow

* fix(scrapeURL): add timeout to EngineResultsTracker

* fix(scrapeURL): report unexpected error to sentry

* chore: remove unused modules

* feat(transfomers/coerce): warn when a format's response is missing

* feat(scrapeURL): feature flag priorities, engine quality sorting, PDF and DOCX support

* (add note)

* feat(scrapeURL): wip readme

* feat(scrapeURL): LLM extract

* feat(scrapeURL): better warnings

* fix(scrapeURL/engines/fire-engine;playwright): fix screenshot

* feat(scrapeURL): add forceEngine internal option

* feat(scrapeURL/engines): scrapingbee

* feat(scrapeURL/transformars): uploadScreenshot

* feat(scrapeURL): more intense tests

* bunch of stuff

* get rid of WebScraper (mostly)

* adapt batch scrape

* add staging deploy workflow

* fix yaml

* fix logger issues

* fix v1 test schema

* feat(scrapeURL/fire-engine/chrome-cdp): remove wait inserts on actions

* scrapeURL: v0 backwards compat

* logger fixes

* feat(scrapeurl): v0 returnOnlyUrls support

* fix(scrapeURL/v0): URL leniency

* fix(batch-scrape): ts non-nullable

* fix(scrapeURL/fire-engine/chromecdp): fix wait action

* fix(logger): remove error debug key

* feat(requests.http): use dotenv expression

* fix(scrapeURL/extractMetadata): extract custom metadata

* fix crawl option conversion

* feat(scrapeURL): Add retry logic to robustFetch

* fix(scrapeURL): crawl stuff

* fix(scrapeURL): LLM extract

* fix(scrapeURL/v0): search fix

* fix(tests/v0): grant larger response size to v0 crawl status

* feat(scrapeURL): basic fetch engine

* feat(scrapeURL): playwright engine

* feat(scrapeURL): add url-specific parameters

* Update readme and examples

* added e2e tests for most parameters. Still a few actions, location and iframes to be done.

* fixed type

* Nick:

* Update scrape.ts

* Update index.ts

* added actions and base64 check

* Nick: skipTls feature flag?

* 403

* todo

* todo

* fixes

* yeet headers from url specific params

* add warning when final engine has feature deficit

* expose engine results tracker for ScrapeEvents implementation

* ingest scrape events

* fixed some tests

* comment

* Update index.test.ts

* fixed rawHtml

* Update index.test.ts

* update comments

* move geolocation to global f-e option, fix removeBase64Images

* Nick:

* trim url-specific params

* Update index.ts

---------

Co-authored-by: Eric Ciarla <ericciarla@yahoo.com>
Co-authored-by: rafaelmmiller <8574157+rafaelmmiller@users.noreply.github.com>
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2024-11-07 20:57:33 +01:00
Nicolas d2344aa14b Revert "Nick: improved map ranking algorithm"
This reverts commit 7acd8d2edb.
2024-10-21 16:11:32 -03:00
Nicolas 7acd8d2edb Nick: improved map ranking algorithm 2024-10-19 13:27:47 -03:00
Nicolas 961b1010cf Nick: rm the cache for map for 24hrs 2024-10-12 17:48:37 -03:00
Gergő Móricz e98f858eb6 fix(api): playground scrape errors 2024-09-26 22:28:14 +02:00
Gergő Móricz f22ab5ffaf feat(db): implement bill_team RPC 2024-09-26 22:15:15 +02:00
Nicolas 9da3432596 Update map.ts 2024-09-16 12:03:14 -04:00
Nicolas af4804e13b Merge branch 'main' into nsc/map-pagination 2024-09-16 11:04:44 -04:00
Gergő Móricz ad1a6fbc74 fix(v1/map): handle invalid URLs gracefully 2024-09-10 19:41:01 +02:00
Nicolas a0f9ab2be7 Update map.ts 2024-09-06 20:14:47 -03:00
Nicolas 82cb80c817 Update map.ts 2024-09-04 23:46:18 -03:00
Nicolas 049a11187d Nick: 2024-09-03 21:09:32 -03:00
Nicolas 3244454826 Nick: 2024-09-02 19:36:36 -03:00
Nicolas 86b0477708 Update map.ts 2024-09-01 19:54:15 -03:00
Nicolas 304b3e752e Update map.ts 2024-09-01 19:52:21 -03:00
Nicolas 8be75accb8 Nick: 2024-08-28 15:40:30 -03:00
Nicolas 4003d37fbc Nick: 2024-08-28 12:46:59 -03:00
Nicolas 463d38f77e Update map.ts 2024-08-27 11:11:59 -03:00
Nicolas 7d93eab0f8 Nick: 2024-08-26 18:48:00 -03:00
Nicolas 6f68678b5d Nick: 2024-08-26 17:13:00 -03:00
Nicolas 2d78c20d68 Nick: 2024-08-26 16:56:27 -03:00
Nicolas 0c48c8a436 Nick: billing for map 2024-08-20 16:43:46 -03:00
Nicolas e200ec9e12 Nick: 2024-08-20 12:24:14 -03:00
Nicolas 55dad82df1 Nick: fixed map search 2024-08-20 12:17:53 -03:00
Nicolas ff84f1fe5e Update map.ts 2024-08-16 20:42:36 -04:00
Nicolas 4314313477 Update map.ts 2024-08-16 19:56:18 -04:00
Nicolas af9a0a6f0b Update map.ts 2024-08-16 19:56:03 -04:00
Nicolas ba5279eafc Nick: all tests passing 2024-08-16 19:55:44 -04:00
Nicolas 5205c5f005 Update map.ts 2024-08-16 19:37:00 -04:00
Nicolas ab48353226 Nick: /map almost good 2024-08-16 19:33:57 -04:00
Gergő Móricz 4c1b74dab3 fix(map): remove robots.txt 2024-08-16 23:46:10 +02:00
rafaelsideguide 7a61325500 map + search + scrape markdown bug 2024-08-16 17:57:11 -03:00
Gergő Móricz f20328bdbb crawl status and document stuff 2024-08-16 22:48:05 +02:00
Gergő Móricz 8b7569f8f3 add zod, create middleware, update openapi declaration, add crawl logic 2024-08-15 23:30:33 +02:00
Gergő Móricz 4165de1773 v1 restructure 2024-08-15 21:51:59 +02:00
rafaelsideguide 6cdf4c68ec wip: map, crawl, scrape mockups 2024-08-06 15:24:45 -03:00