get news urls from twitter list
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
twlist_to_urllist
MANIFEST.in
README.md Update README.md Apr 14, 2016
setup.py

README.md

twlist_to_urllist

Description

This library, twlist_to_urllist provides

Installation

pip install git+https://github.com/takeshi0406/twlist_to_urllist

Usage

from twlist_to_urllist import *

your_twitter_api_config = {
    'token': 'your access token',
    'token_secret': 'your access token secret',
    'consumer_key': 'your consumer key',
    'consumer_secret': 'your consumer secret'
    }

client = urlReporter(**your_twitter_api_config)
url_dicts = client.request_urls(
    owner_screen_name='palafo',
    slug='breakingnews',
    count=10
    )

for x in url_dicts:
    print(x['url'], x['title'], x['favorite_counts'])

result

Syria: ISIS dumped bodies in mass grave in Palmyra - CNN.com http://edition.cnn.com/2016/04/02/middleeast/syria-war-palmyra/index.html [66]
The Chinese bodies still being found in South Korea - BBC News http://www.bbc.co.uk/news/magazine-35943604?ocid=socialflow_twitter#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa [12]
Man held on $2M bail for Little Village slaying in 2014 - Chicago Tribune http://www.chicagotribune.com/news/local/breaking/ct-man-held-on-2m-bail-for-little-village-slaying-in-2014-20160402-story.html [0]
Der Spiegel: Germany Spying on Israeli Prime Minister's Office - Israel News - Haaretz  http://www.haaretz.com/israel-news/.premium-1.712287 [0]
Electoral Map Is a Reality Check to Donald Trump’s Bid - The New York Times http://www.nytimes.com/2016/04/03/us/politics/donald-trump-general-election.html?smid=tw-nytimes&smtyp=cur&_r=0 [0]
Government calls on councils to buy British steel in bid to save industry http://www.telegraph.co.uk/news/2016/04/02/government-calls-on-councils-to-buy-british-steel-in-bid-to-save/?utm_source=dlvr.it&utm_medium=twitter [0]
Travel booking scams see holidaymakers conned out of £12m http://www.telegraph.co.uk/news/2016/04/02/travel-booking-scams-see-holidaymakers-conned-out-of-12m/?utm_source=dlvr.it&utm_medium=twitter [0]
In a devastated Turkish town, teenagers dream of joining the Kurdish guerrillas
| World news | The Guardian http://www.theguardian.com/world/2016/apr/03/diyarbakir-kurdish-teenagers-dream-of-becoming-guerrillas [0]
 Transcript: Donald Trump interview with Bob Woodward and Robert Costa - The Washington Post https://www.washingtonpost.com/news/post-politics/wp/2016/04/02/transcript-donald-trump-interview-with-bob-woodward-and-robert-costa/ [13]
 Turkey rejects Amnesty claims over 'forcibly returning' Syrians https://www.yahoo.com/news/turkey-rejects-amnesty-claims-over-forcibly-returning-syrians-224617423.html [4]