48 Commits

Author SHA1 Message Date
Nicolas
8a1c404918 Nick: revert trailing comma 2024-12-11 19:51:08 -03:00
Nicolas
00335e2ba9 Nick: fixed prettier 2024-12-11 19:46:11 -03:00
Gergő Móricz
d276a23da0 fix(scrapeURL/pdf): handle if a presumed PDF link returns HTML (e.g. 404) 2024-12-10 23:24:33 +01:00
Gergő Móricz
ecad76978d feat(scrapeURL/pdf): extend amount of time we're willing to wait for PDFs in crawl/batch scrape mode 2024-12-10 21:43:00 +01:00
Gergő Móricz
85cbfbb5bb fix(crawl): disable smart wait
This increases the reliability/deterministic-ness of crawls.
2024-12-10 21:12:31 +01:00
Gergő Móricz
6b1f30e0fb fix(scrapeURL/removeUnwantedElements): try to fix onlyMainContent for poorly structured sites 2024-12-04 19:05:12 +01:00
Nicolas
4d2f4aad11 Update index.ts 2024-12-03 21:07:45 -03:00
Nicolas
f3aa32863f Revert "Merge branch 'nsc/crawl-n--1-fixes'"
This reverts commit 6d325b7ce7af912b326369eace62f89f897b536b, reversing
changes made to 3d5704b73e6c4802f0344dc2e17042af9b6de0f5.
2024-12-03 20:53:14 -03:00
Nicolas
64800a1c02 Nick: rm fe for test 2024-12-03 20:34:14 -03:00
Nicolas
eb2e51e50b Nick: fixed /extract without a schema 2024-12-03 12:08:15 -03:00
Gergő Móricz
42980c899d fix(scrapeURL/fire-engine): fast fail on chrome error 2024-11-28 18:41:48 +01:00
rafaelmmiller
943bbae88d fixed nested data inside extract 2024-11-27 18:29:37 -03:00
Nicolas
18b864eace Update index.ts 2024-11-24 19:48:13 -08:00
Nicolas
3eaa3b38ab Nick: formatting 2024-11-20 16:42:42 -08:00
Nicolas
3de4997f4d Loggin num tokens 2024-11-20 13:09:46 -08:00
Nicolas
67a2989874 Nick: fixes 2024-11-20 12:48:10 -08:00
Nicolas
28696da6b2 Nick: gpt-4o 2024-11-20 12:25:50 -08:00
Nicolas
d49f62fb56 Nick: extract fixes 2024-11-20 11:50:14 -08:00
Nicolas
c9b0a80522 Nick: 2024-11-20 10:23:44 -08:00
rafaelmmiller
2fb8a3c8dc fix schema 2024-11-19 10:04:42 -03:00
rafaelmmiller
36cf49c959 Merge remote-tracking branch 'origin/main' into nsc/new-extract 2024-11-19 09:34:08 -03:00
Gergő Móricz
63787bc504 fix(scrapeURL/fire-engine): wait longer if timeout is not specified 2024-11-15 20:25:16 +01:00
Gergő Móricz
4cddcd5206 fix(scrapeURL/fire-engine): timeout-less scrape support (initial) 2024-11-15 20:15:25 +01:00
Móricz Gergő
3a342bfbf0 fix(scrapeURL/playwright): JSON body fix 2024-11-15 15:18:40 +01:00
Gergő Móricz
359c30fbda fix(cache): don't cache on failure error code 2024-11-14 19:49:34 +01:00
Gergő Móricz
49ff37afb4 feat: cache 2024-11-14 19:47:12 +01:00
Móricz Gergő
5519f077aa fix(scrapeURL): adjust error message for clarity 2024-11-14 10:13:48 +01:00
Nicolas
a1c018fdb0 Merge branch 'main' into nsc/new-extract 2024-11-13 17:14:43 -05:00
rafaelmmiller
904c904971 wip 2024-11-13 18:06:20 -03:00
Gergő Móricz
16e850288c fix(scrapeURL/pdf,docx): ignore SSL when downloading PDF 2024-11-12 22:46:58 +01:00
Gergő Móricz
7081beff1f fix(scrapeURL/pdf): retry 2024-11-12 22:26:36 +01:00
Gergő Móricz
9ace2ad071 fix(scrapeURL/pdf): fix llamaparse upload 2024-11-12 20:55:14 +01:00
Gergő Móricz
9f8b8c190f feat(scrapeURL): log URL for easy searching 2024-11-12 17:54:48 +01:00
Gergő Móricz
e95b6656fa fix(scrapeURL): don't log fetch request 2024-11-12 17:53:44 +01:00
Gergő Móricz
f42740a109 fix(scrapeURL): don't log engineResult 2024-11-12 17:52:32 +01:00
Gergő Móricz
2ca22659d3 fix(scrapeURL/llmExtract): fix schema-less LLM extract 2024-11-11 21:07:37 +01:00
Gergő Móricz
d13a2e7d26 fix(scrapeURL): reduce logs 2024-11-11 20:51:45 +01:00
Móricz Gergő
f097cddf23 feat(scrapeURL/fire-engine): adjust timeout for waitFor/wait actions 2024-11-11 11:43:59 +01:00
Móricz Gergő
e97864b806 fix(scrapeURL/llmExtract): better schema normalization 2024-11-11 10:55:45 +01:00
Móricz Gergő
49df553768 fix(scrapeURL, logger): remove buggy ArrayTransport that causes memory leak 2024-11-11 10:27:55 +01:00
Gergő Móricz
628a98d594 fix(scrapeURL): only retain ArrayTransport in testing
Caused OOM issues in production.
2024-11-08 23:12:17 +01:00
Gergő Móricz
ef505f8d99 feat(scrapeURL/fire-engine): adjust timeout tuning 2024-11-08 17:24:19 +01:00
Gergő Móricz
b8a6fb3524 fix(scrapeURL/checkStatus): bad handling of f-e under load 2024-11-08 16:29:56 +01:00
Gergő Móricz
25e94ffd28 fix(scrapeURL): do not submit LLM schema errors to Sentry 2024-11-07 23:21:07 +01:00
Gergő Móricz
79cadcb769 fix(scrapeURL/llmExtract): fill in required field as well 2024-11-07 22:48:57 +01:00
Gergő Móricz
0588f340c3 fix(scrapeURL/llmExtract): array schema fix 2024-11-07 22:46:59 +01:00
Gergő Móricz
552d55c8fc fix(scrapeURL): includeTags/excludeTags 2024-11-07 21:10:27 +01:00
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