Skip to content

Conversation

@tohenk
Copy link
Contributor

@tohenk tohenk commented Aug 31, 2025

By using Puppeter, it is now completely remove cookies requirements.

This fix #2803.

Copy link
Collaborator

@freearhey freearhey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am getting an error message:

npm run grab --- --site=tv.yandex.ru

> grab
> tsx scripts/commands/epg/grab.ts --site=tv.yandex.ru

◐ starting...                                                                                                                                                                                          5:54:37 PM
ℹ config:                                                                                                                                                                                             5:54:37 PM
output: guide.xml
maxConnections: 1
gzip: false
curl: false
site: tv.yandex.ru
ℹ loading channels...                                                                                                                                                                                 5:54:37 PM
ℹ   found 91 channel(s)                                                                                                                                                                               5:54:37 PM
ℹ run:                                                                                                                                                                                                5:54:37 PM
ℹ   [1/182] tv.yandex.ru (ru) - 22 - Aug 31, 2025 (0 programs)                                                                                                                                        5:54:43 PM
ℹ     ERR: Failed to launch the browser process!                                                                                                                                                      5:54:43 PM
  Reason: image not found.

@tohenk
Copy link
Contributor Author

tohenk commented Sep 1, 2025

It seems Puppeteer can't find Chrome binary.

On non Windows systems, Puppeteer v24 which Chrome 139 requires some dependencies such as fonts-liberation libasound2 libgbm1 libnspr4 libnss3 libvulkan1 libcurl4 xdg-utils.

@BellezaEmporium BellezaEmporium self-assigned this Oct 2, 2025
freearhey

This comment was marked as outdated.

@freearhey
Copy link
Collaborator

I still couldn't run the script even after specifying the path to Chrome via executablePath. The process just freezes.

@BellezaEmporium @PopeyeTheSai10r @CasperMcFadden95 Am I the only one experiencing this?

@BellezaEmporium
Copy link
Contributor

I'm going to check what's going on, and if we can actually switch that out.

Copy link
Contributor

@BellezaEmporium BellezaEmporium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puppeteer works for me, but maybe make it headless, to use less memory and potentially gain some time.

EDIT : it was headless, my bad. The runtime is consequent (almost 6/7 seconds per channel, per date).

@PopeyeTheSai10r
Copy link
Collaborator

I still couldn't run the script even after specifying the path to Chrome via executablePath. The process just freezes.

Same for me. It won't start it loads the config then get stuck

npm run grab --- --site=tv.yandex.ru

> grab
> tsx scripts/commands/epg/grab.ts --site=tv.yandex.ru

o starting...                                                                                              11:34:19 AM
i config:                                                                                                  11:34:19 AM
output: guide.xml
maxConnections: 1
gzip: false
curl: false
site: tv.yandex.ru
i loading channels...                                                                                      11:34:19 AM
i   found 91 channel(s)                                                                                    11:34:19 AM
i run:                                                                                                     11:34:19 AM

# Conflicts:
#	package-lock.json
#	package.json
#	scripts/commands/channels/parse.ts

Signed-off-by: Toha <[email protected]>
@tohenk
Copy link
Contributor Author

tohenk commented Oct 27, 2025

Same for me. It won't start it loads the config then get stuck

What OS do you use?

@PopeyeTheSai10r
Copy link
Collaborator

PopeyeTheSai10r commented Oct 28, 2025

What OS do you use?

Windows

@tohenk
Copy link
Contributor Author

tohenk commented Oct 28, 2025

What's the output of npx puppeteer browsers list?
If no output then it can be installed using npx puppeteer browsers install.

@PopeyeTheSai10r
Copy link
Collaborator

PopeyeTheSai10r commented Oct 31, 2025

What's the output of npx puppeteer browsers list? If no output then it can be installed using npx puppeteer browsers install.

npx puppeteer browsers list
[email protected] (win64)
[email protected] (win64)
[email protected] (win64)
[email protected] (win64)

@BellezaEmporium
Copy link
Contributor

I can confirm it sounds difficult without Puppeteer to get through Yandex's TV page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Captcha Error how to fix it locally

4 participants