User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » which profile a pic came from? Page [1]  
not dnl
Suspended
13193 Posts
user info
edit post

dude we so need that

http://thewolfweb.com/photos/00508589.jpg

this is from me

but we should be able to figure out which profile a particular link belongs to

7/7/2009 11:12:37 PM

Shadowrunner
All American
18332 Posts
user info
edit post

This has never been suggested before.

A totally reasonable idea, but the fact that it was first pitched in 1988 and hasn't been implemented by now makes me fear it will never come to pass.

7/8/2009 1:32:53 AM

FroshKiller
All American
51885 Posts
user info
edit post

Actually, the username used to appear in the URL. They changed it, like, four years ago: message_topic.aspx?topic=323677

7/8/2009 9:27:16 AM

evan
All American
27701 Posts
user info
edit post

so this inspired me to code up some quick php

i am indexing all of the pictures on tww by username(s) that have them in their gallery, as well as what folder(s) they're in.

11,515 pictures so far, i just started it. i'll let you know when it's done.

how would you guys prefer to see the results? just a webform you could paste the picture URL into? a greasemonkey plugin? idk.

i'll make the data publicly available for anyone who wants to do something i'm not planning on doing.

7/8/2009 8:30:17 PM

Ernie
All American
45943 Posts
user info
edit post

Maybe you can somehow integrate this with TWW Radio or School Tool 2.0 LOLOLOLOLOL

7/8/2009 8:34:05 PM

evan
All American
27701 Posts
user info
edit post



[Edited on July 8, 2009 at 8:40 PM. Reason : up to 20,000 by the way... those users below 2000 or so have a shit ton of pictures...]

7/8/2009 8:38:00 PM

Ernie
All American
45943 Posts
user info
edit post

But for real though

Wouldn't this just tell us whose gallery (or galleries) the picture is in? You can't figure out who uploaded it, which is the more interesting info.

7/8/2009 8:45:50 PM

Shadowrunner
All American
18332 Posts
user info
edit post

Yeah, just a web form lookup would be nice. Thanks!

7/8/2009 9:10:55 PM

evan
All American
27701 Posts
user info
edit post

^^yeah, but i have no way to access that information unless nael gives me some sort of sql privs, which isn't going to happen.

this is better than nothing, though. most of the pictures i've seen in the db so far are only in one gallery to start with.

(switched it over to console-based, btw, so i can run it without browser timeouts)


(also, in case anyone (qntmfred?) is wondering, it only makes curl requests once per user, and then, if they have folders, once per folder. i also throttled it back somewhat, so it's not hammering the server by any means.)

7/8/2009 9:14:27 PM

Shadowrunner
All American
18332 Posts
user info
edit post

are you just screen scraping it?

7/8/2009 9:15:19 PM

evan
All American
27701 Posts
user info
edit post

curl + a bunch of regular expressions + some spidering logic + mysql

7/8/2009 9:17:07 PM

evan
All American
27701 Posts
user info
edit post

http://tww.e00.us/photo.php

you can either give it a photo URL or the numerical ID of the photo.

very rudimentary, i'll see if i have time to code something better up.

right now it takes a few seconds because it has to go to the user's profile page to figure out what their username is (based off of user number). i'll have a database of userids => usernames soon, so it should improve a bit.

if your photo isn't there, check back later, it will appear as it is indexed. it's only gotten up to user # 5000 so far, i'll just leave it running.

edit: i just added a thing to the main page that tells you what the last item indexed was, so you'll know if it's gotten to your userid yet.

7/8/2009 10:02:51 PM

Stein
All American
19842 Posts
user info
edit post

Quote :
"are you just screen scraping it?"


Quote :
"curl + a bunch of regular expressions + some spidering logic + mysql"


That's code for "yes"

7/9/2009 8:28:59 PM

 Message Boards » Feedback Forum » which profile a pic came from? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.