Comments (9)
Just took a try at getting it to work and succeeded. I don't know if it's what you're supposed to do but here's what I did:
- Downloaded chromedriver from here. I'm on Chromium v71 so I got the download labelled "ChromeDriver 71.0.3578.137".
- Copied the unzipped
chromedriver
to/usr/local/bin
, and I changed its permissions to match the other files there, sosudo chmod 755 /usr/local/bin/chromedriver
(if you don't change the permissions then you'll get a new error).
from irs.
Had this error using Ubuntu 18.10 as well, also had chome webdriver in PATH.
from irs.
Did you find solution? @parsehex
from irs.
I tried your steps but I don't know what's wrong with irs, it's opening chromium browser upon execution. Used to work flawlessly couple months back.
from irs.
It opens Chromium when you execute the irs
command? Is there a message toward the top of the browser window saying something along the lines of "Chrome is being control by automated test software."? If so then that's normal I think - it looks like irs
controls Chromium to bypass YouTube's captcha.
It took a minute or two to download a song but it finished eventually and I found the song in my home directory's Music folder.
from irs.
Yes, it said the title which you mentioned.
But still it crashed saying this on traceback.
`Traceback (most recent call last):
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 229, in find_yt_url
return ("https://youtube.com" + self.code["href"], self.code["title"])
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ab/.local/bin/irs", line 11, in
sys.exit(main())
File "/home/ab/.local/lib/python3.5/site-packages/irs/cli.py", line 82, in main
console(ripper)
File "/home/ab/.local/lib/python3.5/site-packages/irs/utils.py", line 350, in console
ripper.song(song_name, artist_name)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 429, in song
video_url, video_title = self.find_yt_url(song, artist)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 226, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 226, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 226, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 226, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 226, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 224, in find_yt_url
return self.find_yt_url(song, artist, additional_search, caught_by_google, first=True, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 234, in find_yt_url
return self.find_yt_url(song=song, artist=artist, additional_search=additional_search, caught_by_google=True, tries=tries + 1)
File "/home/ab/.local/lib/python3.5/site-packages/irs/ripper.py", line 159, in find_yt_url
soup = BeautifulSoup(CaptchaCheat.cheat_it(link), 'html.parser')
File "/home/ab/.local/lib/python3.5/site-packages/irs/utils.py", line 472, in cheat_it
while CaptchaCheat.strip_it(b.evaluate_script("document.URL")) != CaptchaCheat.strip_it(url):
File "/home/ab/.local/lib/python3.5/site-packages/irs/utils.py", line 478, in strip_it
s = s.strip("http://")
TypeError: a bytes-like object is required, not 'str'
`
from irs.
Okay so I dug around a little bit and was able to get this error on my machine. It looks like this error is related to Python 3. I had it installed with 2 before so I didn't get the error and got it when I switched.
Try uninstalling Python 3's version and install Python 2's and see if that helps.
from irs.
Okay let me try with python 2
from irs.
So I removed the chromedriver entirely with #55, so there's no getting around the captcha yet. In the future I'll bring back the captcha cheater.
from irs.
Related Issues (20)
- IRS does not start after updating to latest reworked version HOT 2
- Keep getting error while doing irs --setup HOT 8
- There's no config set up. Set up a configuration folder by running `irs --setup` HOT 1
- Compile error -- `Error: undefined method 'mapping' for JSON:Module` HOT 1
- Compilation error: undefined local variable or method 'future' for Logger HOT 5
- Program hangs on download HOT 3
- Cant get past irs --install HOT 2
- Unhandled exception: Index out of bounds (IndexError) HOT 4
- Missing hash-key: "give-url" (KeyError) when trying to run with only album & artist HOT 2
- Wrong extension given for config file in readme HOT 10
- Unexpected char
- Youtube organization changed HOT 3
- Feature: Allow selecting youtubevideo to download HOT 4
- Release version is 1.2.1, internal version is 1.4.0 HOT 1
- Can't find libevent-2.1.so.6 HOT 13
- Youtube layout changed error HOT 3
- Multiple Issues and Suggestions HOT 2
- update documentation (what search_terms: does?) HOT 2
- youtube-dl error when searching for URL HOT 1
- URI-encode depreciated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irs.