Solved

How can i get the number of yahoo links in delphi?

Posted on 2011-03-03
7
362 Views
Last Modified: 2012-05-11
Hello.
Please help me.
I need to create a delphi app that checks the yahoo links for a specified domain.
Please help.
How can i do it?
If everyone know, please tell me the solution.

yahoo links url : http://siteexplorer.search.yahoo.com/search?p=mail.ru&bwm=i&bwmf=s&bwmo=d

Thanks
0
Comment
Question by:helyonprime96
  • 4
  • 3
7 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35028398
Form where you get those URLs (in a memo, text file, DB, ...)? and How different they are from each other?
0
 

Author Comment

by:helyonprime96
ID: 35028617
ok... ill find a solution.

please tell me the correct procedure to find a text between :
<span class="btn">Inlinks (

and </span>


please help..
src from there : siteexplorer.search.yahoo.com/search;_ylt=A0oG7zWevm9NfeYAGR7bl8kF?p=mail.ru&bwm=i&bwmf=s&bwmo=d&b=901
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35028938
Please try this:
procedure TForm1.Button1Click(Sender: TObject);
var
  str:string;
begin
  str:=Memo1.Text;
  repeat
    delete(str,1,pos('<span class="btn">',str)+ length('<span class="btn">')-1);
    showmessage(trim(copy(str,1,pos('</span>',str)-1)));
  until pos('<span class="btn">',Str) <= 0;
end;

Open in new window

0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:helyonprime96
ID: 35028991
Thanks,
but can you look at the page
http://siteexplorer.search.yahoo.com/search?p=mail.ru

Please accord me 5 minutes please please... i need help.

on top are two buttons Pages (22,570,813) and Inlinks (237,839,514)

when i execute code showmessage dislpays me the pages number but i need the inlinks number.
please help, this is last question
0
 
LVL 24

Accepted Solution

by:
jimyX earned 500 total points
ID: 35029053
Try this:
procedure TForm1.Button1Click(Sender: TObject);
var
  str:string;
begin
  Str := :=Memo1.Text;
  if Pos('Inlinks (', Str) > 0 then
    begin
      delete(str,1,Pos('Inlinks (',str)+length('Inlinks (')-1);
      Showmessage(copy(str,1,pos(')',str)-1);
    end;
end;

Open in new window

0
 

Author Comment

by:helyonprime96
ID: 35029116
thanks very much for your help.
But the number of links value on site is 237,775,811

but program tell me this number : 15,207,187

did you know the problem?
0
 

Author Closing Comment

by:helyonprime96
ID: 35029128
oooops. i re-verified results.
your solutions is the best, thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question