Skip to content

Instantly share code, notes, and snippets.

View pi-infected's full-sized avatar

Paul Irolla pi-infected

View GitHub Profile
@pi-infected
pi-infected / HOW_TO_AUTOMATE_YOUR_LINKEDIN_ACCOUNT.md
Created August 10, 2025 16:20
How to automate your LinkedIn account

How to Automate Your LinkedIn Account (Safely + Effectively)

Automation should save time, not get you banned. This guide shows safe, ToS‑friendly workflows that keep the human in the loop while removing busywork.


✳️ Principles (Read First)

  • Stay human-led: Automate prep, drafting, tagging, analytics. Don’t automate mass DMs, auto‑connects, or fake engagement.
{
"name": "ANONYMIZED",
"flow": [
{
"id": 1,
"module": "microsoft-email:watchMessages",
"version": 2,
"parameters": {
"limit": 30,
"fields": [],
@pi-infected
pi-infected / autogmail.py
Last active August 2, 2024 09:28
autogmail.py
import os
import logging
from google.oauth2.credentials import Credentials
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient.discovery import build
from openai import OpenAI
import openai
import base64
import json
from googleapiclient.errors import HttpError
{
"name": "ANONYMIZED",
"flow": [
{
"id": 1,
"module": "google-email:TriggerNewEmail",
"version": 2,
"parameters": {
"from": "",
"text": "",
<style>
#flat-chat {
width: 60%;
margin: 0 auto; /* Centre la div horizontalement */
}
@media (max-width: 768px) {
#flat-chat {
width: 100%;
}
import re
import json
from tqdm import tqdm
from time import sleep
from openai import OpenAI
import openai
# Configurez votre clé API OpenAI
openai_api_key = '<ta-clef-openai>' # Remplacez par votre clé API OpenAI
client = OpenAI(api_key=openai_api_key)
import os
import re
import logging
from tqdm import tqdm
from docx import Document
# Set up logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
import os.path
import base64
import datetime
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
import json
import openai
from openai import OpenAI
from time import sleep
import os.path
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
# If modifying these scopes, delete the file token.json.
SCOPES = ["https://www.googleapis.com/auth/gmail.readonly"]
import { NextApiRequest, NextApiResponse } from 'next';
import { sql } from '@vercel/postgres';
import { Parser } from 'json2csv';
export default async function handler(
request: NextApiRequest,
response: NextApiResponse,
) {
try {
// Fetch all data from the Contacts table