Click here to Skip to main content
11,581,982 members (79,637 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: HTML5 wordpress
I am looking for a method to obtain a total number LODD (Line of Duty Deaths) that are listed on the USFA website:[^]
All I am looking for is a total for the calendar year 2012 so i can place that data on my website: http//
Any and all suggestions are welcome I'm stumped.

After reading a few more articles I think php might work I would need to access the above listed external web page and count the number of entries for the calendar year 2012.
I have no clue as to how to do this.
I volunteered to do the web site I am learning as I go and the going is kinda slow.
Posted 16-Apr-12 10:21am
Edited 20-Apr-12 12:19pm
Nelek at 16-Apr-12 16:55pm
I don't know other users, but I am not going to click or go to a link I can not see where it brings. So if I were you, I would use the "improve question" and exchange the with the full link.
Nelek at 16-Apr-12 17:54pm
I saw you edited the link. Thanks. If the problem was the length, you might cut it (as I have done for you) when posting it. But the [^] give us the possibility to see where it goes before clicking. When you post a link the part in the center between the "> and the is just the text shown in blue. You can now click on "improve question" to see what I mean.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What do you plan on using, like what language? I have written many scrappers in a few languages. If you provide what you have tried or what you are stuck on, I'd be happy to try to help.
Member 1169803 at 16-Apr-12 19:07pm
I am thinking javascript would work, it has to be something that I can plug into my web site:
As long as I can plug it into wordpress without a hassle.
Member 1169803 at 17-Apr-12 14:58pm
If you look at the FEMA-USFA page on the right side just above the list of the LODD's there is a line "Your search returned 30 fatality notices." That is what I want but have no idea how to write the script to obtain it.
wizardzz at 17-Apr-12 15:40pm
I don't have much experience doing this in PHP/Javascript unfortunately, most of the time I write a script or stand alone app to do it.
Member 1169803 at 17-Apr-12 16:33pm
I have seen the results on other sites I am just not sure how to go about it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 305
1 Sergey Alexandrovich Kryukov 220
2 Andy Lanng 114
3 Stefan_Lang 110
4 virusstorm 109
0 OriginalGriff 1,358
1 Sergey Alexandrovich Kryukov 970
2 Abhinav S 671
3 F-ES Sitecore 505
4 Suvendu Shekhar Giri 448

Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 20 Apr 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100