2016-08-30 19:25:25 +00:00
|
|
|
TODO:
|
2016-09-14 15:12:28 +00:00
|
|
|
- Complete response:
|
|
|
|
- add excerpt
|
|
|
|
- add word count
|
2016-08-30 19:25:25 +00:00
|
|
|
- Test if .is method is faster than regex methods
|
2016-08-23 17:06:29 +00:00
|
|
|
|
2016-08-30 19:25:25 +00:00
|
|
|
DONE:
|
2016-09-14 16:22:24 +00:00
|
|
|
x add total pages
|
|
|
|
x add rendered pages
|
2016-09-14 15:58:09 +00:00
|
|
|
x add canonicalUrl
|
|
|
|
x add domain
|
2016-09-14 14:15:36 +00:00
|
|
|
x Separate constants into activity-specific folders (dom, scoring)
|
|
|
|
x extractNextPageUrl
|
2016-09-12 14:51:29 +00:00
|
|
|
x Make sure weightNodes flag is being passed properly
|
|
|
|
x Rename all cleaners from cleanThing to clean
|
2016-09-09 19:29:07 +00:00
|
|
|
x Remove $ from function calls to getScore
|
2016-09-09 18:33:16 +00:00
|
|
|
x remove all but attributes whitelist. research what attributes are important beyond SRC and href
|
2016-09-09 17:56:06 +00:00
|
|
|
x remove logic for fetching meta attrs with custom props
|
2016-09-09 15:58:22 +00:00
|
|
|
x cleaning embed and object nodes
|
|
|
|
x run makeLinksAbsolute on extracted content before returning
|
2016-09-09 14:25:12 +00:00
|
|
|
x add option to fetch attrs in RootExtractor's select method
|
2016-09-08 23:29:57 +00:00
|
|
|
x get custom datePublished selector to convert to date object (prob through cleaner)
|
|
|
|
x extract and generalize cleaners
|
|
|
|
x move arguments to cleaners to object
|
2016-09-06 14:00:43 +00:00
|
|
|
x Check that lead-image-url extractor isn't looking for end-of-string file extension matches (i.e., it could be ...foo.jpg?otherstuff
|
2016-09-01 21:50:42 +00:00
|
|
|
x extractLeadImageUrl
|
2016-09-09 17:44:58 +00:00
|
|
|
x Resource (fetches page, validates it, cleans it, normalizes meta tags (!), converts lazy-loaded images, makes links absolute, etc)
|
2016-09-01 21:50:42 +00:00
|
|
|
x extractDek
|
2016-09-01 18:09:28 +00:00
|
|
|
x extractDatePublished
|
2016-08-31 19:52:48 +00:00
|
|
|
x Title metadata
|
|
|
|
x Test re-initializing $ if/when it needs to loop again
|
2016-08-30 19:25:25 +00:00
|
|
|
x `cleanHeaders` Remove any headers that are before any p tags, matching title, etc
|
|
|
|
x `extract` (this kicks it all off)
|
2016-08-23 17:06:29 +00:00
|
|
|
x `node_is_sufficient`
|
2016-08-30 19:25:25 +00:00
|
|
|
x `_extract_best_node`
|
2016-08-23 17:06:29 +00:00
|
|
|
x `get_weight`
|
2016-08-23 19:15:12 +00:00
|
|
|
x `_strip_unlikely_candidates`
|
2016-08-24 14:51:20 +00:00
|
|
|
x `_convert_to_paragraphs`
|
2016-08-24 14:00:15 +00:00
|
|
|
x `_brs_to_paragraphs`
|
|
|
|
x `_paragraphize`
|
2016-08-23 17:06:29 +00:00
|
|
|
|
|
|
|
## Scoring
|
|
|
|
|
2016-08-24 19:30:16 +00:00
|
|
|
x `_get_score`
|
|
|
|
x `_set_score`
|
|
|
|
x `_add_score`
|
2016-08-25 19:31:09 +00:00
|
|
|
x `_score_content`
|
2016-08-24 19:30:16 +00:00
|
|
|
x `_score_node`
|
|
|
|
x `_score_paragraph`
|
2016-08-23 17:06:29 +00:00
|
|
|
|
|
|
|
## Top Candidate
|
|
|
|
|
2016-08-25 23:15:04 +00:00
|
|
|
x `_find_top_candidate`
|
2016-08-30 19:25:25 +00:00
|
|
|
x `extract_clean_node`
|
|
|
|
x `_clean_conditionally`
|
2016-08-25 19:31:09 +00:00
|
|
|
|