Commit Graph

37 Commits

Author SHA1 Message Date
Gergő Móricz 200de9e7e7 feat(scrape): add warning to document if it was concurrency limited (#1348)
* feat(scrape): add warning to document if it was concurrency limited

* phrasing + test fix
2025-03-16 19:57:27 +01:00
Nicolas 7ec278a908 Nick: fixes 2025-03-13 13:05:12 -04:00
Gergő Móricz 055f7d2da0 fix(concurrency-limit): move to renewing a lock on each job instead of estimating time to complete (#1197) 2025-02-19 20:13:22 +01:00
Móricz Gergő 8a8d7d645f fix(concurrency): proper job timeouting 2025-01-31 11:22:10 +01:00
Nicolas 26c61b96f6 Update queue-jobs.ts 2025-01-30 22:58:08 -03:00
Nicolas 7c0b3ad098 (feat/conc) Move fully to a concurrency limit system (#1045)
* Nick: conc limits init

* Nick: test suite plans

* fix(email_notification): move expiry check to redis

* fix(email_notification): add db check in case redis resets

* Update rate-limiter.ts

* Update queue-jobs.ts

* Create concurrency-limit.test.ts

* Update concurrency-limit.test.ts

* Create queue-concurrency-integration.test.ts

* Update queue-concurrency-integration.test.ts

---------

Co-authored-by: Móricz Gergő <mo.geryy@gmail.com>
2025-01-30 13:47:29 -03:00
Gergő Móricz 0421f81020 Sitemap fixes (#1010)
* sitemap fixes iter 1

* feat(sitemap): dedupe improvements

---------

Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2024-12-27 19:59:26 +01:00
Nicolas 3b6edef9fa chore: formatting 2024-12-17 16:58:57 -03:00
Gergő Móricz 2de659d810 fix(queue-jobs): fix concurrency limit 2024-12-15 23:54:52 +01:00
Gergő Móricz 4b5014d7fe feat(v1/batch/scrape): add ignoreInvalidURLs option 2024-12-14 01:11:43 +01:00
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
Nicolas a18614cd00 Update queue-jobs.ts 2024-11-24 19:48:57 -08:00
Gergő Móricz 49ff37afb4 feat: cache 2024-11-14 19:47:12 +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
Gergő Móricz 4468a49aee concurrency limit fix PoC II. 2024-10-25 20:21:12 +02:00
Gergő Móricz 095babe70b fix(queue-jobs): jobs with concurrency fails may vanish 2024-09-26 21:18:56 +02:00
Gergő Móricz dec4171937 fix(queue-worker, queue-jobs): logic fixes 2024-09-26 20:39:19 +02:00
Nicolas 5ecb243693 Nick: 2024-09-04 15:19:45 -03:00
Nicolas e5ca4364ba Nick: improvements to llm extract error handling 2024-08-30 11:57:55 -03:00
Nicolas d872bf0c4c Merge branch 'main' into v1-webscraper 2024-08-28 12:42:23 -03:00
Nicolas 1e08e6d317 Merge branch 'main' into nsc/job-priority 2024-08-27 15:01:58 -03:00
Gergő Móricz 1054a1397b Merge branch 'main' into v1-webscraper 2024-08-23 19:14:49 +02:00
Gergő Móricz 866e71910c further fixes 2024-08-23 18:27:00 +02:00
Gergő Móricz dd737f1235 feat(sentry): add queue instrumentation to 2024-08-22 19:17:51 +02:00
Gergő Móricz 6d48dbcd38 feat(sentry): add trace continuity for queue 2024-08-22 16:47:38 +02:00
Nicolas 477c3257dc Nick: 2024-08-21 22:53:33 -03:00
Nicolas c7bfe4ffe8 Nick: 2024-08-21 22:20:40 -03:00
Nicolas 0ea0a5db46 Nick: wip 2024-08-21 20:54:39 -03:00
Gergő Móricz 57730f6a35 priority changes 2024-08-15 18:58:07 +02:00
Gergő Móricz 2ca1017fc3 fix(crawl): make request 0 of crawl jobs higher priority 2024-08-14 19:34:18 +02:00
Gergo Moricz 4bbc9db1df fix: prioritize scrape jobs over crawl jobs 2024-08-13 21:31:34 +02:00
Gergo Moricz d7549d4dc5 feat: remove webScraperQueue 2024-08-13 21:03:24 +02:00
Nicolas f43d5e7895 Nick: scrape queue 2024-07-30 14:44:13 -04:00
Nicolas 7e002a8b06 Nick: bull mq 2024-07-30 13:27:23 -04:00
Gergő Móricz 6798695ee4 feat: move scraper to queue 2024-07-25 00:14:25 +02:00
Nicolas a6c2a87811 Initial commit 2024-04-15 17:01:47 -04:00