File | Date | Author | Commit |
---|---|---|---|
LocMapAPI | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
USE_Trends | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
__pycache__ | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
data | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
logs | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
Update_Cities_stats.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
dbupdate.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
parser.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
read_matomo.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
readme | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
redis_client.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
requirements.txt | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
start_upate_trends.sh | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
test.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
trends_update.py | 2020-10-29 | Usama Tahir | [6c8bb9] Initial commit |
python3 trends_update.py "2020-06-21" connection = psycopg2.connect(user="postgres", password="SMA@ldel", host="10.11.21.135", port="5432", database="use_trends") # Postgres server config user="postgres" password="kicskics" host="10.11.21.135" port="5432" database="use_trends" # Redis server config redis_server = "10.11.21.135" redis_server_port = "6379" redis_topn_records = 30 # Matomo server="https://10.11.21.129" id_site=2 #Site of Id in Piwik Humkianr is 2 number_of_rows_per_query=-1 #Set Number of rows to fetch results in one query -1 is to fetch all results auth_token='5fb00ade734b293228ebeedd12bf2b3e' #Auth token which can be found in PIWIK dashboard