Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: gothamist extractor #151

Merged
merged 7 commits into from
Mar 9, 2017
Merged

Feat: gothamist extractor #151

merged 7 commits into from
Mar 9, 2017

Conversation

silasburton
Copy link
Contributor

No description provided.

@kev5873 kev5873 self-assigned this Mar 9, 2017
'div.image-left': 'figure',
'.image-left i': 'figcaption',
'div.image-right': 'figure',
'.image-right i': 'figcaption',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can simplify the transform, but I'm not sure if we can.

@kev5873
Copy link
Contributor

kev5873 commented Mar 9, 2017

I've made some updates to generalize some of the selectors.

@@ -11,7 +11,8 @@ export const GothamistComExtractor = {

title: {
selectors: [
'.entry-header h1',
'h1',
'h1.entry-header',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be .entry-header h1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... ok that one should probably be left alone, there's another h1 on the page.

@silasburton silasburton merged commit 9b371e5 into master Mar 9, 2017
@silasburton silasburton deleted the feat-gothamist-extractor branch March 9, 2017 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants