469 Commits

Author SHA1 Message Date
Nicolas
3eaa3b38ab Nick: formatting 2024-11-20 16:42:42 -08:00
Nicolas
c78dae178b Merge branch 'main' into nsc/new-extract 2024-11-20 16:41:13 -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
Gergő Móricz
b1eaecfdb0 fix 2 2024-11-20 20:19:16 +01:00
Gergő Móricz
e2ddc6c65c fix handling of badly formatted URLs 2024-11-20 20:18:40 +01:00
Nicolas
c9b0a80522 Nick: 2024-11-20 10:23:44 -08:00
Gergő Móricz
79a75e088a feat(crawl): allowSubdomain 2024-11-19 18:38:59 +01: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
Gergő Móricz
350d00d27a fix(crawler): treat XML files as sitemaps (temporarily) 2024-11-15 20:09:20 +01:00
Móricz Gergő
3a342bfbf0 fix(scrapeURL/playwright): JSON body fix 2024-11-15 15:18:40 +01:00
Nicolas
7f084c6c43 Nick: 2024-11-14 17:44:32 -05: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
Gergő Móricz
86a78a03cb fix(sitemap): scrape with tlsclient 2024-11-14 18:56:32 +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
0310cd2afa fix(crawl): redirect rebase 2024-11-13 21:38:44 +01: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
fbabc779f5
fix(crawler): relative URL handling on non-start pages (#893)
* fix(crawler): relative URL handling on non-start pages

* fix(crawl): further fixing
2024-11-12 18:20:53 +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
68c9615f2d fix(crawl/maxDepth): fix maxDepth behaviour 2024-11-11 22:02:17 +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
rafaelmmiller
f07bbef78e added trycatch and removed redundancy 2024-11-05 08:11:49 -03:00
Rafael Miller
8297e5beef
Merge branch 'main' into fix/remove-base64-images 2024-11-04 10:35:09 -03:00
rafaelmmiller
4c5bb21a6f added remove base64 images options (true by default) 2024-11-04 10:31:44 -03:00
Eric Ciarla
2eff27ba43
Merge pull request #847 from mendableai/nsc/mobile-support
Adds support for mobile web scraping + mobile screenshot
2024-11-02 11:16:33 -04:00
Nicolas
446acfccde Nick: support for the new actions 2024-10-31 20:01:52 -03:00