diff --git a/fixtures/www.thepoliticalinsider.com/1482255981213.html b/fixtures/www.thepoliticalinsider.com/1482255981213.html new file mode 100644 index 000000000..2c00c75a9 --- /dev/null +++ b/fixtures/www.thepoliticalinsider.com/1482255981213.html @@ -0,0 +1 @@ + As Electoral College Elects Trump, Hillary is Embarrassed in a HUGE Way! Skip to main content



This site works best in IE9 and up and in other modern web browsers

Hillary Clinton Gets More Faithless Electors Than Trump

hillary faithless electors

I don’t want 2016 to end. I can’t describe how happy I’ve been with all of the winning so far.

Whether it’s Donald Trump crushing the entire Republican establishment and bringing it to heel, destroying the Clinton political machine and ending Hillary’s ridiculous failure of a career, utterly embarrassing the entire liberal media complex, already bringing jobs back to America, and now defeating the insane “Russia hacking” conspiracy theory, I can’t remember the last time the average Joe won so much in a political sense.

This latest victory is the cherry on top of a well-deserved sundae for Americans who have been forgotten and abused by the political system: Hillary Clinton ended up with more faithless electors than Donald Trump.

You read that right. Despite the media screaming for weeks about Russian conspiracy theories and recalcitrant “NeverTrump” Republicans promising to send the election to the House of Representatives, Trump won big. Hillary suffered what is hopefully her final humiliating defeat.

Going into Monday, leftists and celebrities tried to persuade electors in the Electoral College to vote for anyone but President-elect Donald Trump. It’s all the media has covered, but hiding underneath that remains the disdain and anger Democrats have for their own party.

When electors met to vote, several electors for the Democrats defected or attempted to defect. Seven electors tried to vote against Hillary with four succeeding in Washington. Trump easily won with 304 electoral votes.

The insurrection was far smaller in the Republican camp.

Chris Suprun, who wrote in The New York Times that he would not vote for Trump, voted for John Kasich instead. Another person voted for Ron Paul, but overall, Texas gave Trump 36 electoral votes, pushing him to 304 votes, well over the 270 needed.

Two. After all the commotion from the media and leftists, Trump lost two.

In Washington, Hillary won 8 electoral votes, but four people defected: 3 voted for former Secretary of State Colin Powell and another voted for Faith Spotted Eagle, an elder in the Yankton Dakota tribe. That vote belonged to Robert Satiacum of Washington’s Puyallup Tribe. He supported Bernie Sanders during the primary.

Amazing. Just plain amazing. You’d have to go far back into the annals of history to find a similar example of the American people so utterly rejecting the NYC-DC political establishment.

Hopefully this is a wake-up call for the Democrat Party – a warning that their push for full-fledged socialism and cultural Marxism is a political loser, and that most Americans are not unhinged leftists.

Sadly, 2016 will come to an end shortly. We will undoubtedly see a long run of winning heading towards the future, but I will remember 2016 as one of the great ones.

Be sure to annoy your liberal friends and family – share this post with them!

Advertisement

\ No newline at end of file diff --git a/src/extractors/custom/index.js b/src/extractors/custom/index.js index 6175ac484..c803d6636 100644 --- a/src/extractors/custom/index.js +++ b/src/extractors/custom/index.js @@ -37,6 +37,7 @@ export * from './www.reuters.com'; export * from './mashable.com'; export * from './www.chicagotribune.com'; export * from './www.vox.com'; +export * from './www.thepoliticalinsider.com'; export * from './www.mentalfloss.com'; export * from './abcnews.go.com'; export * from './www.nydailynews.com'; diff --git a/src/extractors/custom/www.thepoliticalinsider.com/index.js b/src/extractors/custom/www.thepoliticalinsider.com/index.js new file mode 100644 index 000000000..e042977fe --- /dev/null +++ b/src/extractors/custom/www.thepoliticalinsider.com/index.js @@ -0,0 +1,52 @@ +export const WwwThepoliticalinsiderComExtractor = { + domain: 'www.thepoliticalinsider.com', + + title: { + selectors: [ + ['meta[name="sailthru.title"]', 'value'], + ], + }, + + author: { + selectors: [ + ['meta[name="sailthru.author"]', 'value'], + ], + }, + + date_published: { + selectors: [ + ['meta[name="sailthru.date"]', 'value'], + ], + timezone: 'America/New_York', + }, + + dek: { + selectors: [ + // enter selectors + ], + }, + + lead_image_url: { + selectors: [ + ['meta[name="og:image"]', 'value'], // enter selectors + ], + }, + + content: { + selectors: [ + 'div#article-body', + ], + + // Is there anything in the content you selected that needs transformed + // before it's consumable content? E.g., unusual lazy loaded images + transforms: { + }, + + // Is there anything that is in the result that shouldn't be? + // The clean selectors will remove anything that matches from + // the result + clean: [ + + ], + }, +}; diff --git a/src/extractors/custom/www.thepoliticalinsider.com/index.test.js b/src/extractors/custom/www.thepoliticalinsider.com/index.test.js new file mode 100644 index 000000000..887da2639 --- /dev/null +++ b/src/extractors/custom/www.thepoliticalinsider.com/index.test.js @@ -0,0 +1,87 @@ +import assert from 'assert'; +import fs from 'fs'; +import URL from 'url'; +import cheerio from 'cheerio'; + +import Mercury from 'mercury'; +import getExtractor from 'extractors/get-extractor'; +import { excerptContent } from 'utils/text'; + +describe('WwwThepoliticalinsiderComExtractor', () => { + describe('initial test case', () => { + let result; + let url; + beforeAll(() => { + url = + 'http://www.thepoliticalinsider.com/hillary-faithless-electors-more-than-trump/'; + const html = + fs.readFileSync('./fixtures/www.thepoliticalinsider.com/1482255981213.html'); + result = + Mercury.parse(url, html, { fallback: false }); + }); + + it('is selected properly', () => { + // This test should be passing by default. + // It sanity checks that the correct parser + // is being selected for URLs from this domain + const extractor = getExtractor(url); + assert.equal(extractor.domain, URL.parse(url).hostname); + }); + + it('returns the title', async () => { + // To pass this test, fill out the title selector + // in ./src/extractors/custom/www.thepoliticalinsider.com/index.js. + const { title } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(title, 'Hillary Clinton Gets More Faithless Electors Than Trump'); + }); + + it('returns the author', async () => { + // To pass this test, fill out the author selector + // in ./src/extractors/custom/www.thepoliticalinsider.com/index.js. + const { author } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(author, 'Editor'); + }); + + it('returns the date_published', async () => { + // To pass this test, fill out the date_published selector + // in ./src/extractors/custom/www.thepoliticalinsider.com/index.js. + const { date_published } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(date_published, '2016-12-20T13:38:46.000Z'); + }); + + it('returns the lead_image_url', async () => { + // To pass this test, fill out the lead_image_url selector + // in ./src/extractors/custom/www.thepoliticalinsider.com/index.js. + const { lead_image_url } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(lead_image_url, 'http://www.thepoliticalinsider.com/wp-content/uploads/2016/12/hillarysad2.jpg'); + }); + + it('returns the content', async () => { + // To pass this test, fill out the content selector + // in ./src/extractors/custom/www.thepoliticalinsider.com/index.js. + // You may also want to make use of the clean and transform + // options. + const { content } = await result; + + const $ = cheerio.load(content || ''); + + const first13 = excerptContent($('*').first().text(), 13); + + // Update these values with the expected values from + // the article. + assert.equal(first13, 'I don’t want 2016 to end. I can’t describe how happy I’ve been'); + }); + }); +});