Commit Graph

29 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 68b2e1b209 Update log_job.ts 2024-10-27 23:14:25 -03:00
rafaelsideguide cb8571abad fix: enforced dotenv config 2024-09-04 15:57:57 -03:00
Nicolas 08a9cb8db4 Merge branch 'main' into pr/516 2024-09-02 23:32:23 -03:00
Gergő Móricz 846610681b fix: fix posthog, add dummy crawl DB items 2024-08-15 18:55:18 +02:00
Gergo Moricz a33596de3c fix(log_job): add crawl_id 2024-08-13 22:03:46 +02:00
rafaelsideguide bbed6ef23d added validation on every USE_DB_AUTHENTICATION call 2024-08-12 14:20:41 -03:00
Gergo Moricz 8216266d16 fix(scrape_log): display error properly 2024-08-07 14:19:20 +02:00
rafaelsideguide 309728a482 updated logs 2024-07-25 09:48:06 -03:00
rafaelsideguide 6208ecdbc0 added logger 2024-07-23 17:30:46 -03:00
Nicolas b229fbebd8 Update scrape_log.ts 2024-07-19 12:53:26 -04:00
Nicolas 6161b83890 Update scrape_log.ts 2024-07-18 14:17:08 -04:00
Nicolas 2dd7398aad Update scrape_log.ts 2024-07-18 14:16:46 -04:00
rafaelsideguide f453bcf17c bugfix docker self hosting 2024-07-12 16:51:20 -03:00
Nicolas 0ddaac6ae0 Nick: fixed the other instances as well 2024-07-12 15:39:10 -04:00
Gergo Moricz 1a07e9d23b feat: pick up and commit interrupted jobs from/to DB 2024-07-09 15:57:38 +02:00
Nicolas 914897c9d2 Merge branch 'main' into feat/save-docs-on-supabase 2024-07-05 12:27:22 -03:00
Nicolas 32849b017f Nick: 2024-07-03 20:18:11 -03:00
Nicolas b36406e465 Nick: log scrpaers 2024-07-03 17:28:53 -03:00
rafaelsideguide d66e1f7846 looking good 2024-06-27 16:00:45 -03:00
rafaelsideguide c40da77be0 Added implementation for saving docs on supabase
- TODO: remove the comments on `log_job.ts` before deploying to prod
2024-06-26 18:23:28 -03:00
Caleb Peffer e59ba758f5 Caleb: changed posthog logging so that It associates jobs with a group. No 2024-06-18 17:42:21 -07:00
Nicolas 6d5da358cc Nick: cancel job 2024-05-06 17:16:43 -07:00
Nicolas 21cdaf5996 Update log_job.ts 2024-05-02 12:40:49 -07:00
Eric Ciarla caf3f9eede Add Posthog Logging 2024-05-02 15:30:22 -04:00
Caleb Peffer a32f2b37b6 Caleb: logs work 2024-04-30 10:21:41 -07:00
Caleb Peffer 3ca9e5153f Caleb: trying to get loggin workng 2024-04-30 09:20:15 -07:00
Nicolas 0db0874b00 Nick: 2024-04-20 19:37:45 -07:00
Nicolas 6aa3cc3ce8 Nick: 2024-04-20 13:53:11 -07:00