Monthly Archive: May 2023

24
May
2023

Facebook Scraper

https://github.com/kevinzg/facebook-scraper/blob/master/README.md import json from facebook_scraper import get_posts def export_posts_as_json(posts, file_path):     with open(file_path, ‘w’, encoding=’utf-8′) as file:         json.dump(posts, file, ensure_ascii=False, indent=4)...

19
May
2023

读取GA4 report by using Google analytics data api

Reference url: https://github.com/tanyazyabkina/GA4_API_python/blob/main/GA4%20Python%20Report.ipynb GA4 Python Report.ipynb https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqazFnLUdacVZjTTgyTHRkd0VMSkduZ1BGT1FYQXxBQ3Jtc0tuMVYzRlFHTVpSOV9paGNKSVU1UjVHNzFiRHhDVjdDeXd6djRNZGpCeFV5YkNxcUNIeTZsT3pyQjdHcjFZN3VuZDZ0ZEpfN3pPZE5TM1llaGhpTGxTSnl3bmxkd05wSjQ5cFg0TGRuNEp4UDNKdlM0NA&q=https%3A%2F%2Fdevelopers.google.com%2Fanalytics%2Fdevguides%2Freporting%2Fdata%2Fv1%2Fapi-schema&v=HbxIXEfl-Hs https://jupyter.org/try-jupyter/lab/ https://github.com/googleapis/python-analytics-data/tree/main/samples/snippets Google API github code 参考 Step 1: https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-cli?hl=zh-cn to Create a service account, download the json file...

02
May
2023

Add ftp to ubuntu 20.04

https://www.linode.com/docs/guides/vsftpd-on-ubuntu-2004-installation-and-configuration/ sudo useradd -m arj sudo passwd arj Ideait2023**&& 遇到问题 permission: 解决方法chown 目标文件夹:sudo chown -R arj(用户) arj(文件夹目录)

01
May
2023

docker composer ftp

https://github.com/stilliard/docker-pure-ftpd/blob/master/README.md version: ‘3.3’ services:nginx:image: nginx:latestports:– ’80:80′volumes:– ./nginx:/etc/nginx/conf.d– ./logs/nginx:/var/log/nginx– ./wordpress:/var/www/html/demo– ./ideaitweb:/var/www/html/ideaitweb.com– ./colorsky:/var/www/html/colorsky.ca– ./arj:/var/www/html/arj.ca– ./arj:/home/boblinks:– wordpress– wordpress-2– colorsky– arj– ftpd_serverrestart: always wordpress:image: wordpress:6.1-php7.4-fpmvolumes:– ./wordpress:/var/www/html/demo– ./uploads.ini:/usr/local/etc/php/conf.d/uploads.inienvironment:– WORDPRESS_DB_HOST=mysql– WORDPRESS_DB_NAME=Ideaitdb– WORDPRESS_DB_USER=ideaitsuser–...