opolskitom / youtube-qr-scraper Goto Github PK
View Code? Open in Web Editor NEWPython program written to scrape YouTube videos for QR codes
Python program written to scrape YouTube videos for QR codes
I can scrape some videos for QR codes but not all of them.
The only pattern I see is that newer ones don't work. I get the following error:
`[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:235: error: (-5:Bad argument) CAP_IMAGES: error, expected '0?[1-9][du]' pattern, got: https://rr2---sn-1gieen7e.googlevideo.com/videoplayback?expire=1660410981&ei=BYj3YqORB6mAx_AP75i4WA&ip=212.51.135.99&id=o-AMNFcrzuuhRILvithNce970IFmEkwUHqmmbauG1_upfc&itag=22&source=youtube&requiressl=yes&mh=xL&mm=31%2C29&mn=sn-1gieen7e%2Csn-1gi7znek&ms=au%2Crdu&mv=m&mvi=2&pl=22&initcwndbps=2862500&spc=lT-KhqeElikhiSzS8sDevIzyRuAEpII&vprv=1&mime=video%2Fmp4&ns=bODQ20kawaGb9p9B8-G1NS4H&cnr=14&ratebypass=yes&dur=114870.601&lmt=1654542473253933&mt=1660388929&fvip=2&fexp=24001373%2C24007246&c=WEB&rbqsm=fr&txp=5432432&n=g8mKYJCCVpTNNNxOoQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgbECYbj9r2zuk_65pvk92mPpH3wbZc0PG0zV-FQuK_e8CIHpwq_DIFmReFjjO3LJ0UAVucUp685JB7Fv6TRrWdUnm&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgEpLBOsPT2QHbmoGDKSzXBmM2hAvWewY6TkE6mAFU7W4CIHhbtoAm-NUeCYF0s57dpbOF4EkcSrGlEFe2pXdJP6be in function 'cv::icvExtractPattern'`
I think it could have something to do with AV1 support (see this issue from OpenCV: opencv/opencv#11389)
Has anyone got a workaround for this?
Hi opolskitom
First things first: Thanks for a great contribution to the public! I really like the idea of scraping youtube videos for QR codes and want to use it for my own case.
I tried using YouTube-QR-Scraper today but all I get is a "Invalid URL" Error:
I used the very video that was used to demonstrate the application. Do you know how this can be solved?
Best regards
wuest
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.