Page 1 of 1

How to get the user id from the user name

Posted: Wed Jun 06, 2007 6:05 pm
by dbaalborg
Hi,

I'm currently planning to develop an application using OS... I would like to know if it is possible to get the associated user id from a user name...

example: my user name is dbaalborg, and my profile page is http://www.opensubtitles.org/en/profile/iduser-143124 ...
Is it possible to get "143124" from "dbaalborg"?

Thanks,
++
dbaalborg

Posted: Fri Jun 08, 2007 5:02 pm
by oss
I can code that, url should looks like http://www.opensubtitles.org/en/profile ... -dbaalborg and it will redirect to http://www.opensubtitles.org/en/profile/iduser-143124

from that page you know everything you need (maybe:)

also use http://www.opensubtitles.org/en/profile ... 143124/xml for parsing in programs...

Posted: Tue Jun 12, 2007 12:53 pm
by dbaalborg
Oh yes, that would be so great... I know about this /xml, it's what's so interesting about OpenSubtitles to create a program... (I know about it, I created a program 3 years ago to parse the European Patent Office's website, it has really ugly HTML, and that was such a pain in the A**!)
Thx!

++
dbaalborg

Posted: Thu Jun 14, 2007 2:51 pm
by dbaalborg
Just a question, Have you implemented the "usernickname-" hack? Because when I try it, it always says "No such user"... So I don't know if it is not working, or if it is because it is not implemented yet...
I don't want to rush you, I still don't need it right now (I start slowly, lot of other things to do :) ), but just to tell you that it is not working, in case you have already done it...

++
dbaalborg

Posted: Thu Jun 14, 2007 9:06 pm
by oss

Posted: Thu Jun 14, 2007 11:00 pm
by dbaalborg
I'm sorry, but I'm not sure if it really works... in the xml, there is written

Code: Select all

<profile> <msg type="msg error">Užívateľ neznámy</msg> </profile>
which translates in English to

Code: Select all

<profile> <msg type="msg error">No such user</msg> </profile>
if I'm right...

Are you sure it works?

Posted: Fri Jun 15, 2007 5:36 pm
by oss
yes, it should, try now. I am sorry, I did not updated files on other webservers, so you had 1/3 chance it will work :)))