English > Development

Script for egafd.com

<< < (4/27) > >>

Ivek23:

--- Quote ---egafd have pages with alphabetics letters.
--- End quote ---

This is really a very big problem to find the url for SEARCH_STR , the best is still to what is mentioned in these words:


--- Quote ---For use this script, the URL of the page must be indicate in the data movie before execute.
--- End quote ---

pra15:
I post my new egafd (on the way, so confuse), i don't use SEARCH_STR but go to the alphabetic page of the name.
If Title is the exact name or exact Pseudo the script give the good info, but if it's the pseudo you must choose the good line:
Title alias for Real Name.


I have added your code for Movie link, but i have a problem in part //get year.
All the line are not the same if the movie is original, alternate title or best of, so we can't step to "class=notes" for all.
I want step first to "</a>", then step to ">" for obtain info (but here, it seems to stay in the ">" of the "a>").
But there is a condition before go to ">", the movie must have info in the page otherwise the position goes to the next line.

Pascal is so strictly!
Is there a tuto for the different way of condition If, i never know the exact syntax, if there is one or two or .... conditions, if we must write ";". I lost a lot of time with this.

I tried different ways but i obtain always an error or the data (of year) is empty!

Just a another question, is there a number limited of logmessage by script because i see somes logmessage give me an error, the syntax was correct and when they are desactived, all is perfect!

i'm again so sorry for my poor english!


[attachment deleted by admin]

Ivek23:
1.) Very good job.

2.) 
--- Quote ---Pascal is so strictly!
--- End quote ---
 
I'm not familiar with Pascal writing.

3. ) In the "year" I had a similar problem, so I eliminated the "Year" from the transfer of data as it is not so important information (concerning the transfer and extract data - the script works better that way).

4.) 
--- Quote ---Just a another question, is there a number limited of logmessage by script because i see somes logmessage give me an error, the syntax was correct and when they are desactived, all is perfect!
--- End quote ---
I do not know (maybe someone else knows more about it), but if you really do not need it is better to deactivate or even remove the log message.

5. )  Small correction:
This code for BIO

--- Code: ---if Lien <> '' then
         Lien := Lien + #13;
            if URL <> '' then
         Lien := Lien + '<link url="' + URL + '">';
            Lien := Lien + Name + '</link>';


//if URL1 <> '' then
         //Lien := Lien + '<link url="' + URL1 + '">';
            //Lien := Lien + Name + '</link>';
if Year <> '' then
         Lien := Lien + ' • ' + Year;
//if Role <> '' then
         //Lien := Lien + ' • ' + Role;

--- End code ---

transferred to wrong url link to the movies, but this correction code


--- Code: ---if Lien <> '' then
         Lien := Lien + #13;
           // if URL <> '' then
        // Lien := Lien + '<link url="' + URL + '">';
            //Lien := Lien + Name + '</link>';
if URL1 <> '' then
         Lien := Lien + '<link url="' + URL1 + '">';
            Lien := Lien + Name + '</link>';
if Year <> '' then
         Lien := Lien + ' • ' + Year;
//if Role <> '' then
         //Lien := Lien + ' • ' + Role;
--- End code ---

now transferred to the correct url link to the movies.

pra15:
Ok thanks works good!

For Get Year :
declare actposstart3 if is not


--- Code: ---// Get Year
actPosStart := PosFrom('<a href="', HTML, EndPos);
actPosStart2 := PosFrom('</a>', HTML, actPosStart);
Av := Trim(Copy(HTML, (actposstart2 + 5), 1));
logmessage('AV : ' + Av);
If Av = '<' then begin
actposStart2 := (actposstart2 + 5);           //Step to go after "</a>"
actposstart3 := PosFrom('>', HTML, actposStart2);
actposend := PosFrom('<', HTML, actposstart3);
Year := Trim(Copy(HTML, (actposstart3 +1), (actposend - actposStart3 - 1)));
logmessage(Year);
end;
--- End code ---

Now is it possible to obtain in this script,  the titles of movies where this actor plays in the database. (The list in the buttom)
Another question :
If we start the script from an actor "A", can we obtain the ID of an other actor who is in the database?

Ivek23:

--- Quote ---For Get Year :
--- End quote ---

Thanks

For certain players not transfer info data as is the case here:

http://www.egafd.com/actresses/details.php/id/a00004
http://www.egafd.com/actresses/details.php/id/j00012
http://www.egafd.com/actresses/details.php/id/k00007
http://www.egafd.com/actresses/details.php/id/l00451
http://www.egafd.com/actresses/details.php/id/m00958
http://www.egafd.com/actresses/details.php/id/n00481

especially at this url:

http://www.egafd.com/actresses/details.php/id/a01022
http://www.egafd.com/actresses/details.php/id/b00117
http://www.egafd.com/actresses/details.php/id/d00140
http://www.egafd.com/actresses/details.php/id/j00652
http://www.egafd.com/actresses/details.php/id/k00487
http://www.egafd.com/actresses/details.php/id/m01376

It is interesting that in all these URL addresses  egafd_people_mod.psf script  makes transfer all info data under these headings, as well as actresses pictures or pictures with the words "No Picture Available".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version