Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
dbaalborg
Posts: 51
Joined: Sun Feb 25, 2007 2:41 pm

How to get the user id from the user name

Wed Jun 06, 2007 6:05 pm

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

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Fri Jun 08, 2007 5:02 pm

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...

dbaalborg
Posts: 51
Joined: Sun Feb 25, 2007 2:41 pm

Tue Jun 12, 2007 12:53 pm

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

dbaalborg
Posts: 51
Joined: Sun Feb 25, 2007 2:41 pm

Thu Jun 14, 2007 2:51 pm

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

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Thu Jun 14, 2007 9:06 pm


dbaalborg
Posts: 51
Joined: Sun Feb 25, 2007 2:41 pm

Thu Jun 14, 2007 11:00 pm

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?

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Fri Jun 15, 2007 5:36 pm

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 :)))

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 46 guests