60 Commits

Author SHA1 Message Date
Nicolas
c19af6ef42 Update map.ts 2025-01-19 12:27:08 -03:00
Nicolas
2e5785d8d9 Nick: fetch sitemap timeout param 2025-01-19 11:40:13 -03:00
Gergő Móricz
23bb172592 fix(crawler): recognize sitemaps in robots.txt 2025-01-17 15:45:52 +01:00
Nicolas
5e5b5ee0e2
(feat/extract) New re-ranker + multi entity extraction (#1061)
* agent that decides if splits schema or not

* split and merge properties done

* wip

* wip

* changes

* ch

* array merge working!

* comment

* wip

* dereferentiate schema

* dereference schemas

* Nick: new re-ranker

* Create llm-links.txt

* Nick: format

* Update extraction-service.ts

* wip: cooking schema mix and spread functions

* wip

* wip getting there!!!

* nick:

* moved functions to helpers

* nick:

* cant reproduce the error anymore

* error handling all scrapes failed

* fix

* Nick: added the sitemap index

* Update sitemap-index.ts

* Update map.ts

* deduplicate and merge arrays

* added error handler for object transformations

* Update url-processor.ts

* Nick:

* Nick: fixes

* Nick: big improvements to rerank of multi-entity

* Nick: working

* Update reranker.ts

* fixed transformations for nested objs

* fix merge nulls

* Nick: fixed error piping

* Update queue-worker.ts

* Update extraction-service.ts

* Nick: format

* Update queue-worker.ts

* Update pnpm-lock.yaml

* Update queue-worker.ts

---------

Co-authored-by: rafaelmmiller <150964962+rafaelsideguide@users.noreply.github.com>
Co-authored-by: Thomas Kosmas <thomas510111@gmail.com>
2025-01-13 22:30:15 -03:00
Nicolas
f4d10c5031 Nick: formatting fixes 2025-01-10 18:35:10 -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
ac187452c3 Nick: better filtering for urls that should be scraped 2024-12-17 17:34:55 -03:00
Nicolas
0f8b8a717d Update map.ts 2024-12-17 15:19:52 -03: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
6fbfeafe38 Nick: fixed map settings 2024-11-20 16:51:13 -08:00
Nicolas
aaddbdc1bc Update map.ts 2024-11-20 16:47:07 -08:00
Nicolas
0e4e9a3b37 Nick: 2024-11-20 13:01:36 -08:00
rafaelmmiller
53134b7c85 Rafa: removed throw error and added map to requests 2024-11-19 09:34:52 -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
1b032b05fa fix(map): make sitemapOnly simpler 2024-11-15 21:14:32 +01:00
Gergő Móricz
a4d3dba865 fix(map): ignore limit when using sitemapOnly 2024-11-15 21:03:20 +01:00
Nicolas
3c1b1909f8 Update map.ts 2024-11-14 17:52:15 -05:00
Nicolas
7f084c6c43 Nick: 2024-11-14 17:44:32 -05:00
Nicolas
f155449458 Nick: sitemap only 2024-11-14 17:29:53 -05:00
Nicolas
ebe9de2ac5 Nick: 2024-11-14 15:26:15 -05:00
Nicolas
d6749c211d Nick: refactor and /* glob pattern support 2024-11-14 14:57:38 -05:00
Nicolas
540d4e5b56 Nick: 2024-11-12 12:10:18 -05: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
Nicolas
78badf8f72 Nick: wip 2024-10-28 16:02:07 -03:00
Nicolas
d2344aa14b Revert "Nick: improved map ranking algorithm"
This reverts commit 7acd8d2edb6abc45a63fe1060377d2acb398ec36.
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