Sponsored Content
Full Discussion: Post An Interesting Video
The Lounge What is on Your Mind? Post An Interesting Video Post 302889784 by ni2 on Monday 24th of February 2014 12:45:28 AM
Old 02-24-2014
The Moth and the World Science Festival Present George Lombardi
A young doctor is whisked halfway across the globe to care for an ailing international religious icon.
This User Gave Thanks to ni2 For This Post:
 

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Post a Cool Music Video (Part I)

See How to use YouTube tags for instructions on how to post a video from YouTube. While My Guitar Gently Weeps by George Harrison and Friends 0ITrQXES8kU (16 Replies)
Discussion started by: Perderabo
16 Replies

2. What is on Your Mind?

Post a Cool Music Video (Part II)

This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with.... Throwing Fire At The Sun by Heather Nova QXq44BPL-wo (11 Replies)
Discussion started by: Perderabo
11 Replies

3. What is on Your Mind?

Post a Cool Music Video (Part III)

This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with.... Operator by Jim Croce A2iS8XctJKo (9 Replies)
Discussion started by: Perderabo
9 Replies

4. What is on Your Mind?

Post a Cool Music Video (Part IV)

This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with.... Beyond The Invisible by Enigma hx2jrunyGjE (16 Replies)
Discussion started by: Perderabo
16 Replies

5. What is on Your Mind?

Post a Cool Music Video (Part V)

This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with.... Octavarium by Dream Theater xK3qylwd-M0 (9 Replies)
Discussion started by: Perderabo
9 Replies

6. What is on Your Mind?

Post a Cool Music Video (Part VII)

We post videos by linking them in from youtube. Videos from other sites are not absolutely forbidden, but we know that youtube won't tolerate videos that we won't tolerate. We have instructions on how to post youtube videos: How to use youtube tags. Please follow the format in those instructions to... (11 Replies)
Discussion started by: zxmaus
11 Replies

7. What is on Your Mind?

Post a Cool Music Video (Part VI)

A few years ago we had a series of threads where we posted music videos. Let's try another one and see what happens. :) We post videos by linking them in from youtube. Videos from other sites are not absolutely forbidden, but we know that youtube won't tolerate videos that we won't... (18 Replies)
Discussion started by: Perderabo
18 Replies

8. What is on Your Mind?

Post a Cool Music Video (Part VIII)

We've all heard this, right? 9bZkp7q19f0 Post some cool music...! You may want to review the earlier threads:Part I Part II Part III Part IV Part V Part VI Part VII (3 Replies)
Discussion started by: Scott
3 Replies
WebService::CIA::Parser(3pm)				User Contributed Perl Documentation			      WebService::CIA::Parser(3pm)

NAME
WebService::CIA::Parser - Parse pages from the CIA World Factbook SYNOPSIS
use WebService::CIA::Parser; my $parser = WebService::CIA::Parser->new; my $data = $parser->parse($string); DESCRIPTION
WebService::CIA::Parser takes a string of HTML and parses it. It will only give sensible output if the string is the HTML for a page whose URL matches "https://www.cia.gov/library/publications/the-world-factbook/print/[a-z]{2}.html" This parsing is somewhat fragile, since it assumes a certain page structure. It'll work just as long as the CIA don't choose to alter their pages. METHODS
"new" Creates a new WebService::CIA::Parser object. It takes no arguments. "parse($html)" Parses a string of HTML take from the CIA World Factbook. It takes a single string as its argument and returns a hashref of fields and values. The values are stripped of all HTML. "<br>" tags are replaced by newlines. It also creates four extra fields: "URL", "URL - Print", "URL - Flag", and "URL - Map" which are the URLs of the country's Factbook page, the printable version of that page, a GIF map of the country, and a GIF flag of the country respectively. EXAMPLE
use WebService::CIA::Parser; use LWP::Simple qw(get); $html = get( "https://www.cia.gov/library/publications/the-world-factbook/print/uk.html" ); $parser = WebService::CIA::Parser->new; $data = $parser->parse($html); print $data->{"Population"}; AUTHOR
Ian Malpass (ian-cpan@indecorous.com) COPYRIGHT
Copyright 2003-2007, Ian Malpass This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The CIA World Factbook's copyright information page (<https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copy- right.html>) states: The Factbook is in the public domain. Accordingly, it may be copied freely without permission of the Central Intelligence Agency (CIA). SEE ALSO
WebService::CIA perl v5.8.8 2008-02-04 WebService::CIA::Parser(3pm)
All times are GMT -4. The time now is 07:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy