Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Getting results from google translate for free

Look into post data, and then with the returned string use regex to parse the results. I think this would be the way to do it with Google Translate.
EDIT: idb_'s http class would work fine for this.
(Dec 13, 2012 09:23 AM)Diazepa Wrote:  Yes, I looked into this, but I had problems deserializing it. Would you mind helping me write a little snippet for the purpose? Thanks!

RegEx: http://www.youtube.com/watch?v=FpAvBOhDrYk
RegEx: http://www.youtube.com/watch?v=SUmSwV2lZ9U

POST: http://www.youtube.com/watch?v=7Wzel-g1U54
POST: http://www.youtube.com/watch?v=UV5_b5oaUQk

If none of those helped you.
God of knowledge: http://www.google.com
(Dec 13, 2012 11:26 AM)Diazepa Wrote:  Thanks man! I'm done with it now! It was easier than I thought

No problem, glad I could help. If you don't mind me asking, what is this for?
You can still use Google

http://translate.google.com/translate_a/...UAGE_&sc=0
(Dec 14, 2012 07:52 AM)Diazepa Wrote:  At school, we are allowed to use a dictionary software on tests, but thats it. VB.NET is perfect for easy designing, and I managed to accurately replicate the GUI of the dictionary. Only difference is that this can translate whole sentences under the guise of being an allowed application. I programmed in some hotkeys so you are able to change the text field in an instant in case of teachers. Sorry if you were expecting something huge lol!



I managed to get that link myself, by turning off immediat translation, inspecting an element in the browser, and go to "network".

The real problem was that the output file was rather serialized (look at it yourself). I used regex to extract the info fields.

Only problem is that I get every suggestion too, and this looks rather weird. Also, you cant use the " sign in the text you are to translate, because that is the split operator. Tried using a textbox1.text.replace(""""), ("'") line of code, to filter them out - but It dosen't seem to work. If I have the willpower to, I can probably fix this in five minutes though lol!

That's actually a quiete good idea if you're only allowed to use one piece of software.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by simmerFeb 12, 2021 12:07 AM 0 103 Feb 12, 2021 12:07 AM
Last Post: simmer
[Java] by Nemo2478Jun 7, 2020 02:08 AM 3 175 Jun 7, 2020 02:08 AM
Last Post: HFDone
[Python] by Mr.7Feb 16, 2020 03:36 AM 10 280 Feb 16, 2020 03:36 AM
Last Post: lockhead