olek-libcraigscrape 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. data/CHANGELOG +94 -0
  2. data/COPYING +674 -0
  3. data/COPYING.LESSER +165 -0
  4. data/README +89 -0
  5. data/Rakefile +125 -0
  6. data/bin/craig_report_schema.yml +68 -0
  7. data/bin/craigwatch +581 -0
  8. data/bin/report_mailer/craigslist_report.html.erb +17 -0
  9. data/bin/report_mailer/craigslist_report.plain.erb +18 -0
  10. data/lib/geo_listings.rb +144 -0
  11. data/lib/libcraigscrape.rb +217 -0
  12. data/lib/listings.rb +160 -0
  13. data/lib/posting.rb +324 -0
  14. data/lib/scraper.rb +212 -0
  15. data/test/geolisting_samples/geo_listing_ca070209.html +76 -0
  16. data/test/geolisting_samples/geo_listing_ca_sk070209.html +31 -0
  17. data/test/geolisting_samples/geo_listing_cn070209.html +35 -0
  18. data/test/geolisting_samples/geo_listing_us070209.html +355 -0
  19. data/test/geolisting_samples/hierarchy_test071009/index.html +31 -0
  20. data/test/geolisting_samples/hierarchy_test071009/us/fl/ft%20myers%20%5C/%20SW%20florida/index.html +46 -0
  21. data/test/geolisting_samples/hierarchy_test071009/us/fl/ft%20myers%20%5C/index.html +46 -0
  22. data/test/geolisting_samples/hierarchy_test071009/us/fl/index.html +46 -0
  23. data/test/geolisting_samples/hierarchy_test071009/us/fl/miami/index.html +46 -0
  24. data/test/geolisting_samples/hierarchy_test071009/us/fl/miami/nonsense/index.html +46 -0
  25. data/test/geolisting_samples/hierarchy_test071009/us/fl/miami/nonsense/more-nonsense/index.html +46 -0
  26. data/test/geolisting_samples/hierarchy_test071009/us/fl/nonexist/index.html +46 -0
  27. data/test/geolisting_samples/hierarchy_test071009/us/fl/nonsense/index.html +46 -0
  28. data/test/geolisting_samples/hierarchy_test071009/us/fl/south%20florida/index.html +46 -0
  29. data/test/geolisting_samples/hierarchy_test071009/us/index.html +355 -0
  30. data/test/google.html +8 -0
  31. data/test/libcraigscrape_test_helpers.rb +37 -0
  32. data/test/listing_samples/category_output.html +231 -0
  33. data/test/listing_samples/category_output_2.html +217 -0
  34. data/test/listing_samples/empty_listings.html +128 -0
  35. data/test/listing_samples/fortmyers_art_index.060909/1046596324.html +93 -0
  36. data/test/listing_samples/fortmyers_art_index.060909/1053085283.html +92 -0
  37. data/test/listing_samples/fortmyers_art_index.060909/1112522674.html +89 -0
  38. data/test/listing_samples/fortmyers_art_index.060909/823516079.html +92 -0
  39. data/test/listing_samples/fortmyers_art_index.060909/825684735.html +89 -0
  40. data/test/listing_samples/fortmyers_art_index.060909/891513957.html +94 -0
  41. data/test/listing_samples/fortmyers_art_index.060909/897549505.html +99 -0
  42. data/test/listing_samples/fortmyers_art_index.060909/960826026.html +89 -0
  43. data/test/listing_samples/fortmyers_art_index.060909/993256300.html +89 -0
  44. data/test/listing_samples/fortmyers_art_index.060909/fortmyers_art_index500.060909.html +237 -0
  45. data/test/listing_samples/fortmyers_art_index.060909/fortmyers_art_index600.060909.html +132 -0
  46. data/test/listing_samples/long_search_output.html +137 -0
  47. data/test/listing_samples/mia_fua_index8900.5.21.09.html +226 -0
  48. data/test/listing_samples/mia_search_kitten.3.15.10.html +149 -0
  49. data/test/listing_samples/miami_search_sss_rack.6.18.09/miami_search_sss_rack1000.6.18.09.html +144 -0
  50. data/test/listing_samples/miami_search_sss_rack.6.18.09/miami_search_sss_rack900.6.18.09.html +146 -0
  51. data/test/listing_samples/new_listing_span.4.17.10.html +769 -0
  52. data/test/listing_samples/short_search_output.html +133 -0
  53. data/test/post_samples/1207457727.html +92 -0
  54. data/test/post_samples/brw_reb_1224008903.html +101 -0
  55. data/test/post_samples/posting0.html +91 -0
  56. data/test/post_samples/posting1.html +106 -0
  57. data/test/post_samples/posting1796890756-061710.html +2318 -0
  58. data/test/post_samples/posting1808219423.html +2473 -0
  59. data/test/post_samples/posting1938291834-090610.html +188 -0
  60. data/test/post_samples/posting2.html +107 -0
  61. data/test/post_samples/posting3.html +92 -0
  62. data/test/post_samples/posting4.html +993 -0
  63. data/test/post_samples/posting5.html +38 -0
  64. data/test/post_samples/sfbay_art_1223614914.html +94 -0
  65. data/test/post_samples/this_post_has_been_deleted_by_its_author.html +37 -0
  66. data/test/post_samples/this_post_has_expired.html +48 -0
  67. data/test/test_craigslist_geolisting.rb +521 -0
  68. data/test/test_craigslist_listing.rb +362 -0
  69. data/test/test_craigslist_posting.rb +426 -0
  70. metadata +273 -0
data/COPYING.LESSER ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/README ADDED
@@ -0,0 +1,89 @@
1
+ = libcraigscrape - A craigslist URL-scraping support Library
2
+
3
+ An easy library to do the heavy lifting between you and Craigslist's posting database. Given a URL, libcraigscrape will
4
+ follow links, scrape fields, and make ruby-sense out of the raw html from craigslist's servers.
5
+
6
+ For more information, head to the {craiglist monitoring}[http://www.derosetechnologies.com/community/libcraigscrape] help section of our website.
7
+
8
+ == craigwatch
9
+ libcraigscrape was primarily developed to support the included craigwatch[link:files/bin/craigwatch.html] script. See the included craigwatch script for
10
+ examples of libcraigscape in action, and (hopefully) to serve an immediate craigscraping need.
11
+
12
+ == Installation
13
+
14
+ Install via RubyGems:
15
+
16
+ sudo gem install libcraigscrape
17
+
18
+ == Usage
19
+
20
+ === Scrape Craigslist Listings since Sep 10
21
+
22
+ On the 'miami.craigslist.org' site, using the query "search/sss?query=apple"
23
+
24
+ require 'rubygems'
25
+ require 'libcraigscrape'
26
+ require 'date'
27
+ require 'pp'
28
+
29
+ miami_cl = CraigScrape.new 'us/fl/miami'
30
+ miami_cl.posts_since(Time.parse('Sep 10'), 'search/sss?query=apple').each do |post|
31
+ pp post
32
+ end
33
+
34
+ === Scrape Last 225 Craigslist Listings
35
+
36
+ On the 'miami.craigslist.org' under the 'apa' category
37
+
38
+ require 'rubygems'
39
+ require 'libcraigscrape'
40
+ require 'pp'
41
+
42
+ i=1
43
+ CraigScrape.new('us/fl/miami').each_post('apa') do |post|
44
+ break if i > 225
45
+ i+=1
46
+ pp post
47
+ end
48
+
49
+ === Multiple site with multiple section/search enumeration of posts
50
+
51
+ In Florida, with the exception of 'miami.craigslist.org' & 'keys.craigslist.org' sites, output each post in
52
+ the 'crg' category and for the search 'artist needed'
53
+
54
+ require 'rubygems'
55
+ require 'libcraigscrape'
56
+ require 'pp'
57
+
58
+ non_sfl_sites = CraigScrape.new('us/fl', '- us/fl/miami', '- us/fl/keys')
59
+ non_sfl_sites.each_post('crg', 'search/sss?query=artist+needed') do |post|
60
+ pp post
61
+ end
62
+
63
+ === Scrape Single Craigslist Posting
64
+
65
+ This grabs the full details under the specific post http://miami.craigslist.org/mdc/sys/1140808860.html
66
+
67
+ require 'rubygems'
68
+ require 'libcraigscrape'
69
+
70
+ post = CraigScrape::Posting.new 'http://miami.craigslist.org/mdc/sys/1140808860.html'
71
+ puts "(%s) %s:\n %s" % [ post.post_time.strftime('%b %d'), post.title, post.contents_as_plain ]
72
+
73
+ === Scrape Single Craigslist Listing
74
+
75
+ This grabs the post summaries of the single listings at http://miami.craigslist.org/search/sss?query=laptop
76
+
77
+ require 'rubygems'
78
+ require 'libcraigscrape'
79
+
80
+ listing = CraigScrape::Listings.new 'http://miami.craigslist.org/search/sss?query=laptop'
81
+ puts 'Found %d posts for the search "laptop" on this page' % listing.posts.length
82
+
83
+ == Author
84
+ - Chris DeRose (cderose@derosetechnologies.com)
85
+ - DeRose Technologies, Inc. http://www.derosetechnologies.com
86
+
87
+ == License
88
+
89
+ See COPYING[link:files/COPYING.html]
data/Rakefile ADDED
@@ -0,0 +1,125 @@
1
+ require 'rake'
2
+ require 'rake/clean'
3
+ require 'rake/gempackagetask'
4
+ require 'rake/rdoctask'
5
+ require 'rake/testtask'
6
+ require 'fileutils'
7
+ require 'tempfile'
8
+
9
+ include FileUtils
10
+
11
+ RbConfig = Config unless defined? RbConfig
12
+
13
+ NAME = "olek-libcraigscrape"
14
+ VERS = ENV['VERSION'] || "1.0.1"
15
+ PKG = "#{NAME}-#{VERS}"
16
+
17
+ RDOC_OPTS = ['--quiet', '--title', 'The libcraigscrape Reference', '--main', 'README', '--inline-source']
18
+ RDOC_FILES = ['README', "CHANGELOG", "COPYING","COPYING.LESSER", 'bin/craigwatch']
19
+ PKG_FILES = (%w(Rakefile) + RDOC_FILES + Dir.glob("{bin,test,lib}/**/*")).uniq.sort_by{|a,b| (a == 'lib/libcraigscrape.rb') ? -1 : 0 }
20
+
21
+ SPEC =
22
+ Gem::Specification.new do |s|
23
+ s.name = NAME
24
+ s.version = VERS
25
+ s.platform = Gem::Platform::RUBY
26
+ s.has_rdoc = true
27
+ s.bindir = 'bin'
28
+ s.executables = 'craigwatch'
29
+ s.rdoc_options += RDOC_OPTS
30
+ s.extra_rdoc_files = RDOC_FILES
31
+ s.summary = "quick, easy, craigslist parsing library that takes the monotony out of working with craigslist posts and listings"
32
+ s.description = s.summary
33
+ s.author = "Chris DeRose, DeRose Technologies, Inc."
34
+ s.email = 'cderose@derosetechnologies.com'
35
+ s.homepage = 'http://www.derosetechnologies.com/community/libcraigscrape'
36
+ s.rubyforge_project = 'libcraigwatch'
37
+ s.files = PKG_FILES
38
+ s.require_paths = ["lib"]
39
+ s.test_files = FileList['test/test_*.rb']
40
+ s.add_dependency 'nokogiri', '>= 1.4.4'
41
+ s.add_dependency 'htmlentities', '>= 4.0.0'
42
+ s.add_dependency 'activesupport','>= 2.3.0', '< 3'
43
+ s.add_dependency 'activerecord', '>= 2.3.0', '< 3'
44
+ s.add_dependency 'actionmailer', '>= 2.3.0', '< 3'
45
+ s.add_dependency 'kwalify', '>= 0.7.2'
46
+ s.add_dependency 'sqlite3'
47
+ end
48
+
49
+ desc "Run all the tests"
50
+ Rake::TestTask.new do |t|
51
+ t.libs << "test"
52
+ t.test_files = FileList['test/test_*.rb']
53
+ t.verbose = true
54
+ end
55
+
56
+ Rake::RDocTask.new do |rdoc|
57
+ rdoc.rdoc_dir = 'doc/rdoc'
58
+ rdoc.options += RDOC_OPTS
59
+ rdoc.main = "README"
60
+ # NOTE: If you don't put libcraigscrape.rb at the beginning, the rdoc ends up looking a little screwy
61
+ rdoc.rdoc_files.add RDOC_FILES+Dir.glob('lib/*.rb').sort_by{|a,b| (a == 'lib/libcraigscrape.rb') ? -1 : 0 }
62
+ end
63
+
64
+ Rake::GemPackageTask.new(SPEC) do |p|
65
+ p.need_tar = false
66
+ p.need_tar_gz = false
67
+ p.need_tar_bz2 = false
68
+ p.need_zip = false
69
+ p.gem_spec = SPEC
70
+ end
71
+
72
+ task "lib" do
73
+ directory "lib"
74
+ end
75
+
76
+ task :install do
77
+ sh %{rake package}
78
+ sh %{sudo gem install pkg/#{NAME}-#{VERS}}
79
+ end
80
+
81
+ task :uninstall => [:clean] do
82
+ sh %{sudo gem uninstall #{NAME}}
83
+ end
84
+
85
+ require 'roodi'
86
+ require 'roodi_task'
87
+
88
+ namespace :code_tests do
89
+ desc "Analyze for code complexity"
90
+ task :flog do
91
+ require 'flog'
92
+
93
+ flog = Flog.new
94
+ flog.flog_files ['lib']
95
+ threshold = 105
96
+
97
+ bad_methods = flog.totals.select do |name, score|
98
+ score > threshold
99
+ end
100
+
101
+ bad_methods.sort { |a,b| a[1] <=> b[1] }.each do |name, score|
102
+ puts "%8.1f: %s" % [score, name]
103
+ end
104
+
105
+ puts "WARNING : #{bad_methods.size} methods have a flog complexity > #{threshold}" unless bad_methods.empty?
106
+ end
107
+
108
+ desc "Analyze for code duplication"
109
+ require 'flay'
110
+ task :flay do
111
+ threshold = 25
112
+ flay = Flay.new({:fuzzy => false, :verbose => false, :mass => threshold})
113
+ flay.process(*Flay.expand_dirs_to_files(['lib']))
114
+
115
+ flay.report
116
+
117
+ raise "#{flay.masses.size} chunks of code have a duplicate mass > #{threshold}" unless flay.masses.empty?
118
+ end
119
+
120
+ RoodiTask.new 'roodi', ['lib/*.rb'], 'roodi.yml'
121
+ end
122
+
123
+ desc "Run all code tests"
124
+ task :code_tests => %w(code_tests:flog code_tests:flay code_tests:roodi)
125
+
@@ -0,0 +1,68 @@
1
+ type: map
2
+ class: CraigReportDefinition
3
+ mapping:
4
+ "debug_database": { type: bool, required: no }
5
+ "debug_mailer": { type: bool, required: no }
6
+ "debug_craigscrape": { type: bool, required: no }
7
+
8
+ "report_name": { type: str, required: no }
9
+ "email_to": { type: str, required: yes }
10
+ "email_from": { type: str, required: no }
11
+ "smtp_settings":
12
+ type: map
13
+ required: no
14
+ mapping:
15
+ "address": { type: str, required: yes }
16
+ "port": { type: int, required: no, default: 25 }
17
+ "user_name": { type: str, required: no }
18
+ "domain": { type: str, required: no }
19
+ "password": { type: str, required: no }
20
+ "authentication": { type: str, required: no }
21
+ "enable_starttls_auto": { type: bool, required: no }
22
+ "tls": { type: bool, required: no }
23
+ "tracking_database":
24
+ type: map
25
+ mapping:
26
+ "adapter": { type: str, required: yes }
27
+ "dbfile": { type: str, required: no }
28
+ "host": { type: str, required: no }
29
+ "username": { type: str, required: no }
30
+ "password": { type: str, required: no }
31
+ "socket": { type: str, required: no }
32
+ "database": { type: str, required: no }
33
+ "searches":
34
+ type: seq
35
+ sequence:
36
+ - type: map
37
+ class: CraigReportDefinition::SearchDefinition
38
+ mapping:
39
+ "name": {type: str, required: yes, unique: yes}
40
+ "has_image": {type: bool, required: no}
41
+ "newest_first": {type: bool, required: no, default: no}
42
+ "price_required": {type: bool, required: no, default: no}
43
+ "price_greater_than": {type: int, required: no}
44
+ "price_less_than": {type: int, required: no}
45
+ "full_post_has": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
46
+ "full_post_has_no": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
47
+ "summary_post_has": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
48
+ "summary_post_has_no": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
49
+ "summary_or_full_post_has": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
50
+ "summary_or_full_post_has_no": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
51
+ "location_has": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
52
+ "location_has_no": {type: seq, required: no, sequence: [ {type: str, unique: yes} ]}
53
+ "sites":
54
+ type: seq
55
+ required: yes
56
+ sequence:
57
+ - type: str
58
+ unique: yes
59
+ "listings":
60
+ type: seq
61
+ required: yes
62
+ sequence:
63
+ - type: str
64
+ unique: yes
65
+ "starting":
66
+ type: str
67
+ required: no
68
+ pattern: /^[\d]{1,2}\/[\d]{1,2}\/(?:[\d]{2}|[\d]{4})$/