How to download all subtitles from Opensubtitles.org in a specific language? [closed] - linux

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Excuse me if this post is not related to this forum, but I couldn't find any other place to ask my question. It would be appreciated if you introduce me a suitable place for this post.
By the way, I am trying to download all the subtitles from Opensubtitles.org in a specific language (say English) and find their translations in another language (say Arabic). I tried wget, but I couldn't download anything useful from this site. (I need .srt, .zip and .txt files)
Can everyone help me?
Bests.

Downloading everything individually will put an unnessesary load on their servers. Better use something like http://opus.lingfil.uu.se/OpenSubtitles.php

The download link is something like:
http://dl.opensubtitles.org/en/download/sub/4617044
Where 4617044 is the ID of the subtitle. You can use this URL with wget to download it, but it won't have the correct filename.
Alternatively, you can use the XML-RPC api to search and download subtitles.

Related

python open() vs pd.read_csv() [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 months ago.
Improve this question
a photo of using open() and pd.read_csv() to open a link but open() says no file directory, why do I have an error when I used open() but pd.read_csv opened the file, I tried using it again but it says file not found?
The function open() opens a file which resides in persistent memory (SSD/HDD), and returns a file object.
pandas.read_csv() can parse input directly from URLs.
In other words: Because the file, as the error says, does not exist and neither does a path to said file.
Edit: I just realized that you may be new here, so maybe I'll give an analogy: Imagine I told you to open a book, and said out loud a link to a book. You would wonder how you would ever open that book as well, because you have no way of parsing that information in your head. If I instead send you link, which you open on your computer, you can read the file. open() wants a physical book. pd.read_csv() can also accept a link to the book.

Saving File without an extension [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
We have a system that creates files that are imported into Oracle. The files have the naming convention...
Filename.0000
Where the numbers are incremented with each export. So one file might be filename.4357 and the next file will be filename.4358.
I have managed to import the file into a spreadsheet as a comma delimited file where I then carry out some cleansing of the file.
I then want to save the file back to this unusual type .0000 but I can only seem to save it as Excel, CSV, TXT, PDF etc.
Does anyone have any ideas ? Thank you in advance.
Nothing yet
Save the file as a txt file and close it. Then rename it in Windows Explorer.
You can also do that with VBA. Use the NAME command to rename it to a file name with the desired extension.
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/name-statement

how can I download a file from a url(not a direct url) in Linux [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to download a file from below url by using wget command.
http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602
wget http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602 -O test.txt
when I type this url in browser it creates text data file and downloads it.
I need to do exact same thing in Linux server.
I found someone asked the same question.
I tried all the solutions of the comments and answers in here, but couldn't solve the problem.
https://unix.stackexchange.com/questions/145946/downloading-files-using-wget
If there is any solution, please let me know.
Thanks.
You need to put quotation marks around the URL because of the special characters:
wget "http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602" -O test.txt

How to get text into Unity? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a basic Java program with output of "hello world". What I want to do is to write a Java script to run that program and import that into Unity so I can use it in my program in Unity.
Is there a way?
You can communicate with Unity from a Java application trough OSC(Open Sound Control) and send text, commands triggers or load an external file(xml or similar) into Unity.
Unity and Open Sound Control
http://www.sundh.com/blog/2012/07/unity-processing-demo/
On unity you have to use function OnGui() to show text.
In the related documentation you have many example.
For show message in a console just use in a javascript:
Debug.Log("Hello world");
You can also put files in your /Resources folder in your unity project, then load them at run time. These can be pretty much anything. models, prefabs, materials... could be text files (maybe comma delimited txt files, that you parse) or more typically .xml files that you can easily access and extract data (text) from.
to load any resource file, use resources.load()
http://docs.unity3d.com/Documentation/ScriptReference/Resources.Load.html
Don't use OnGui as this is bad for performance rather use Canvas to edit and place the text you prefer on or in (parent) object you want.
to make this look better put the font size higher and the width and height lower.
this will make it look sharper.

Is there an easy way to View, Edit & Locally store a .txt file through Chrome [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This isn't necessarily a coding problem, but users here would be the perfect people to ask.
Is there an easy way to view and edit a simple text file (.txt seems the most obvious) on a browser (I use Chrome). I'd like this file to be stored locally as well, preferably in my dropbox folder so it's backed-up at all times.
I tried looking for a chrome extension that does this, but after 3 failed attempts I thought there might be a manual way to do this.
I don't care about the format as long as it's common and can be opened on other computers if need be.
Paste the following into your browser address field to get a ready browser notepad:
data:text/html, <html contenteditable>
You can type or paste your text here, edit and then save as page or copy somewhere. Suggested by Jose in his blog.
HTML5 has a File API: http://www.html5rocks.com/tutorials/file/filesystem/
Once you read that you will realize that you can use a blob builder to write to a file, then post that file back to your browser which will automatically download it.
var bb = new BlobBuilder();
bb.append(message.value);
var blob = bb.getBlob();
location.href = window.webkitURL.createObjectURL(blob);
This is an old question, but I've wanted this ability for a long time and finally found a solution that works for me. In Chrome, set up a Workspace folder as described here.
I wanted to edit a markdown file, so I created an empty file called editable.md in my workspace folder. With Chrome developer tools open, in the Sources pane, I can double click this file to edit it. Even better, I have the MarkView plugin installed, so I see a nicely rendered version of the markdown in the main view.
I think there's a reason why web browsers and text editors are called the way they are. Why would you wan't a functionallity like that? There are other tools for that.
Maybe your answer is a server which handles this kind of requests - allows information to be added, and stores it in it's own dropbox folder which is shared with other users.
The main problem is that browser can't that easily access files on your computer if those aren't cookies, tmp files.

Resources