Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vimeo scraper encounters spam protection page #232

Open
dylanfisher opened this issue Dec 11, 2024 · 1 comment
Open

Vimeo scraper encounters spam protection page #232

dylanfisher opened this issue Dec 11, 2024 · 1 comment

Comments

@dylanfisher
Copy link

I'm not sure what this Cloudflare radar is, but it matches the response I'm getting in the video_info.data method https://radar.cloudflare.com/scan/682d43c4-cb03-4e66-853d-c27c573dd98f/dom.

Calling video_info.width, or any other method that is looking for a particular element in that data response, fails.

[27] pry(#<VideoModule>)> video_info.width
NoMethodError: undefined method `text' for nil:NilClass
from /Users/dylanfisher/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/video_info-4.2.0/lib/video_info/providers/vimeo_scraper.rb:152:in `json_info'

Have you encountered this before? I'm wondering if it's new Vimeo protection, or just something that I haven't seen before.

@thibaudgg
Copy link
Owner

Hi @dylanfisher, I haven't used my gem for quite some time, so haven't got to encounter this issue. If Vimeo decided to prevent scrapper, I would recommend trying the VimeoAPI provider instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants