diff options
Diffstat (limited to 'legacy_py/update_stories.py')
-rwxr-xr-x | legacy_py/update_stories.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/legacy_py/update_stories.py b/legacy_py/update_stories.py new file mode 100755 index 0000000..4340148 --- /dev/null +++ b/legacy_py/update_stories.py @@ -0,0 +1,10 @@ +from get_sources import *
+
+nyt=get_nyt()
+#fox=get_fox()
+#nbc=get_nbc()
+
+url=nyt['h2']['href'][0]
+print(url)
+card=getTwitterCard("https://www.nytimes.com/2017/01/30/us/politics/trump-immigration-ban-memo.html")
+#print(card)
|