This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["http://www.centcom.mil/en/news/articles/jan.-9-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/jan.-8-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/u.s.-military-begins-training-iraqi-forces-to-take-on-isil", "http://www.centcom.mil/en/news/articles/jan.-6-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/jan.-5-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/jan.-4-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/jan.-14-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/news/articles/gen.-austin-sends-letter-to-servicemembers-families-following-cyber-vandali", "http://www.centcom.mil/en/news/articles/jan.-13-military-airstrikes-continue-against-isil-in-syria-and-iraq", "http://www.centcom.mil/en/new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from bs4 import BeautifulSoup | |
from urllib2 import urlopen | |
from urlparse import urljoin | |
BASE_URL = "http://www.centcom.mil" | |
BASE_NEWS_URL = "http://www.centcom.mil/en/news" | |
NEWS_PAGE_URL = BASE_NEWS_URL + "/P" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WAKLibDems | RuthSmeeth | mitch_1uk | Go4Lowe | ReshamKotecha | Jack_Tinley | iaingartside | votejamesberry | CllrScottMann | CllrAnnSteward | CharlotteHT_ | julianknight15 | lindsey4wnorth | KevinGillottPPC | WillJMartindale | SamJRushworth | RuthCadbury | Mari_Williams | JoeCookeLabour | paulasherriff | natashamillward | rupahuq | Steph_Peacock | CatherineWest1 | RichardBurgon | lloydrm | ToddDForeman | Jessica_Asato | annaturley | SachinPatel_87 | wdjstraw | HuwSECambLabour | KateVotesLabour | JuliaTickridge | clairethomas1 | liverlibdems | DrJennyWoods | gracelibdem | liz4stratford | JackieLibDem | ann4oxfordeast | DavidHMalone | derbynukipppc | Neilkelly13 | stevenjbrookes | green_mac | robjlinds | MachanUkip | ettiespencer | howell_karen | charliekiss | brisfox | CllrMattBrown | cllrsrichardson | angelamawle | ianddriver | dinahkeal | emmawarman | mapesburygreen | maureenchilds2 | davidschofiel18 | CllrRichardLee | ukip_swindon | idhamramadi | kevin_kerrigan1 | xanderedz77 | paulhalliday | PaulForWest |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"name": "intro", | |
"text": "Hey, it's Salif. I'm finally leaving. I can't live here anymore, Syria's too dangerous now." | |
}, | |
{ | |
"text": "One of my cousins is in Germany. He's a barber, like my dad used to be." | |
}, | |
{ |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdamAfriyie | |
adamhollowaymp | |
Adrian_BaileyMP | |
alanbrownsnp | |
alancampbellmp | |
alanduncanmp | |
AlanMakMP | |
alanwhiteheadmp | |
AlasdairMcD_MP | |
AlbertOwenMP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SUM(LENGTH(post_content) - LENGTH(REPLACE(post_content, ' ', '')) + 1) as 'Word Count' FROM `wp_posts` WHERE post_status='publish' AND post_type='page'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<!-- Animate Dashed line - based off http://css-tricks.com/svg-line-animation-works | |
--> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<style type="text/css"> | |
#line{ | |
width: 100%; | |
margin: 20px 0; | |
height: 300px; | |
} |