TaskPipe/Template_Plan_SP500.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« TaskPipe/Template_Config_System.pm ↑ Summary TaskPipe/Template_Plan_Stub.pm »
1 package TaskPipe::Template_Plan_SP500;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'TaskPipe::Template_Plan';
5  
6 1 has template => (is => 'ro', isa => 'Str', default => q|---
7 ##################################################################
8 #
9 # Sample plan:
10 # Scrape S&P500 Companies from Wikipedia and associated quotes
11 # from the URLs which Wikipedia provides
12 #
13 ##################################################################
14 #
15 # (Note this plan is in 'branch' format)
16  
17 - _name: Scrape_Companies
18 url: https://en.wikipedia.org/wiki/List_of_S%26P_500_companies
19 headers:
20 Referer: https://www.google.com
21  
22  
23 - _name: Scrape_Quote
24 url: $this
25 headers:
26 Referer: https://www.google.com
27  
28  
29 - _name: Record
30 table: company
31 values:
32 ticker: $this[1]
33 url: $this[1]
34 name: $this[1]
35 sector: $this[1]
36 industry: $this[1]
37 address: $this[1]
38 date_added: $this[1]
39 cik: $this[1]
40 quote: $this
41 |);
42  
43  
44 =head1 NAME
45  
46 TaskPipe::Template_Plan_SP500 - template for the SP500 sample project plan
47  
48 =head1 DESCRIPTION
49  
50 This is the template which creates the plan for the SP500 sample project
51  
52 =head1 AUTHOR
53  
54 Tom Gracey <tomgracey@gmail.com>
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 Copyright (c) Tom Gracey 2018
59  
60 TaskPipe is free software, licensed under
61  
62 The GNU Public License Version 3
63  
64 =cut
65  
66  
67  
68 1 1;
« TaskPipe/Template_Config_System.pm ↑ Summary TaskPipe/Template_Plan_Stub.pm »