English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

For example, at the site
>
> http://www.secinfo.com/$/Search.asp?Find=Italy+Fund
>
> is it possible to get the company's CIK (Central Index Key, marked as U.S. SEC # 785855), and to get the address of the Italy Fund Inc link on the page? When I open the page using urllib2.urlopen("http://www.secinfo.com/$/Search.asp?Find=Italy+Fund").read()
>
> I only find a standardized form version of the page (it does not have all of the page source info, I believe because it is in .asp format).

2006-09-03 17:06:46 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

I tried to do the parsing in Perl, as per Leo R.'s suggestions (thanks by the way), and that didn't work either; it simply gives a generic form HTML output, with references to the CIK number as "return _(this, ?, ?)"

2006-09-04 07:39:42 · update #1

2 answers

Hi,

It is possible to do in python, but much simpler to do in PERL I think PERL is a better choice and this can be done in two lines of code:

use LWP::Simple;
$doc = get ' http://type_your_URL_here';

The real value of PERL is data parsing. You can parse the document with either XML's xpath or simple string processing looking for your specific node. .

Cheers,

Leo

2006-09-03 19:13:12 · answer #1 · answered by Leo R 2 · 0 0

Sorry for the confusion, yet are you designing the website, or are you starting to be it? The layout element has not something to do with html or languages, it is greater like the version between somebody appearing some indoors layout artwork, as contrasted to the folk who honestly pass the fixtures around. for sure, out of your question, you at the instant are not the "fixtures mover", honestly starting to be the internet website; however the single which will layout it, the artwork artwork, the dimensions and font of the textual content fabric, the colour of the history, etc. (i.e. the "indoors dressmaker" if this have been a house extremely than a internet website.) in case you ought to honestly build the website (html, etc), then you certainly could desire to start up with some college classes first, using fact this communicate board isn't adequate to honestly instruct you the thank you to code the website from scratch, so which you're able to could desire to run over to the pc technology branch, and get between the community "geeks" that may be useful you exchange your layout into an rather internet website. sturdy success with your undertaking.

2016-10-01 07:01:41 · answer #2 · answered by ? 3 · 0 0

fedest.com, questions and answers