MyNotes

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–...

03
Feb
2023

How to set amazon ses

DKIM 如何帮助防范仿冒邮件和垃圾邮件 帮助防范仿冒邮件 DKIM 是一种标准的电子邮件身份验证方法,它会在外发邮件中添加数字签名。邮件接收服务器在收到 DKIM 签名的邮件后,可验证邮件是否确实来自发件人,而非冒充发件人的其他人。DKIM 还会执行检查,以确保邮件内容在邮件发送后未发生变化。 当邮件接收服务器可以验证邮件来自于您时,系统便不太可能将您的邮件标记为垃圾邮件。 借助 DKIM 身份验证,您可以更顺利地将正常邮件递送到收件人的收件箱。邮件接收服务器可验证邮件是否确实来自您的网域,而非伪造的网域。 https://docs.aws.amazon.com/zh_cn/ses/latest/dg/send-email-authentication-dmarc.html 借助 SPF 防范仿冒邮件和垃圾邮件 防范仿冒邮件和钓鱼邮件,帮助避免邮件被标记为垃圾邮件 SPF 是一种标准电子邮件身份验证方法。SPF 可帮助您的网域防范仿冒邮件,也有助于避免邮件接收服务器将您发出的邮件标记为垃圾邮件。SPF 指定了可以为您的网域发送邮件的邮件服务器。接收邮件服务器会使用 SPF 来验证看似来自您网域的传入邮件是否是从您授权的服务器发出。 如果不使用 SPF,则邮件接收服务器将从贵组织或网域发送的邮件标记为垃圾邮件的可能性会增高。 重要提示:从...