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
# Expected use >> python read-GNews.py -q [query] -l [language] -p [country] | |
# The following command will search for the latest news written in German from Austria about "Redbull" | |
# python read-GNews.py -q Redbull -l de -p AT | |
# | |
# Queries can be provided as strings using quotation marks >> python read-GNews.py -q "Redbull Media House" -l de | |
# Multiple queries can be executed at once >> python read-GNews.py -q "Redbull Media House" -q Redbull -l de -p at -p de | |
# The script will save a CSV file containing Title, Link, pubDate, Description, Source and Alexa Traffic Rank. | |
import feedparser | |
import time |
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
from textgenrnn import textgenrnn | |
textgen = textgenrnn(weights_path='keygen_weights.hdf5', | |
vocab_path='keygen_vocab.json', | |
config_path='keygen_config.json') | |
textgen.generate_samples(max_gen_length=5, temperatures=[0.2,0.5]) | |
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 csv | |
import os | |
import requests, sys | |
import pandas as pd | |
from sumy.parsers.html import HtmlParser | |
from sumy.parsers.plaintext import PlaintextParser | |
from sumy.nlp.tokenizers import Tokenizer | |
from sumy.summarizers.lsa import LsaSummarizer as Lsa | |
from sumy.summarizers.luhn import LuhnSummarizer as Luhn | |
from sumy.summarizers.text_rank import TextRankSummarizer as TxtRank |
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
Verifying my Blockstack ID is secured with the address 13a7qtZbLBSMrY32fZLoKtcnnkEzRmezob https://explorer.blockstack.org/address/13a7qtZbLBSMrY32fZLoKtcnnkEzRmezob |
NewerOlder