Looking for dynamic data

bersh

Client
Регистрация
25.02.2013
Сообщения
14
Благодарностей
0
Баллы
1
Hi there,

I'm trying to create phpbb project, which will be able to write down link to a profile.

The problem: I don't know how to scrape link with my username(that I'm currently login, and get in profile virables), regexp will not help, need some virable to look for in document.

Is there any way to slove it?

Best
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18






++++++++++++++++++++++++++++++++++++++++
Your purpose is log in phpbb and scrape some profiles?

htt p://www.l2isignia.com/phpbb/memberlist.php

One of member's profile:
<a href="./memberlist.php?mode=viewprofile&amp;u=54">socratess</a>
Use regex: (?=exp) and (?<=exp) to extract all the segments
between the 2 bold parts.

One of them:memberlist.php?mode=viewprofile&amp;u=54
And add the red stuff before it.

If it is htt p://www.l2isignia.com/memberlist.php
but not htt p://www.l2isignia.com/phpbb/memberlist.php;
then use Page.Fulldomain Enviroment Variable. Unfortunately....so.....

(Don't know if all phpbb use href="./ ------relative links;
if some of them use, <a href="http://www.l2isignia.com/phpbb/memberlis........>
then need judge first.)
Most drupal use href="./.....;
but some drupal pages, are href="http.......(not include outgoing links)

Or click one member, and save it's page url.
Memberlist page has sort function; many profile urls are almost identical
except digital number. So alternative way----just get one particular profile,then deduce it,
needn't scrape/click one after another.
 

bersh

Client
Регистрация
25.02.2013
Сообщения
14
Благодарностей
0
Баллы
1
The thing is, that I would like to create a profile, next to log in, and after logging in look for my profile name in "Registered Users Online:", and scrape link from my profile name. The trick witch simply searching for isn't working for this site ;/
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18

bersh

Client
Регистрация
25.02.2013
Сообщения
14
Благодарностей
0
Баллы
1
Yes it is, but by clicking into it I got opportunity to edit my profile, not to view it. Also link structure is different and in edit option there is no profile id anywhere
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)