You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want pipe the opus_api to wget after extracting the URL from the resulting JSON object, but the urls are wrong because they are prefixed by http://opus.nlpl.eu/. Stripping this results in an appropriate URL.
What I Did
$ opus_api get en fa | jq '.corpora[].url'
/Users/erippeth/miniconda3/envs/opus-dl/lib/python3.6/site-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '"http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-OpenSubtitles/v2018/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-Tanzil/v1/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-TEP/v1/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-Wikipedia/v1.0/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-TED2013/v1.1/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-infopankki/v1/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-KDE4/v2/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-GlobalVoices/v2017q3/moses/en-fa.txt.zip""http://opus.nlpl.eu/https://object.pouta.csc.fi/OPUS-ELRC_2922/v1/moses/en-fa.txt.zip"
The text was updated successfully, but these errors were encountered:
Description
I want pipe the
opus_api
to wget after extracting the URL from the resulting JSON object, but the urls are wrong because they are prefixed byhttp://opus.nlpl.eu/
. Stripping this results in an appropriate URL.What I Did
The text was updated successfully, but these errors were encountered: