Solved

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

Posted on 2011-03-03
7
354 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 58
array6 challenfge 6 66
mapBully challenge 6 93
Create a path if not exists 7 47
A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now