This commit is contained in:
Xander 2025-01-22 21:54:19 +02:00
parent 2b1987b901
commit 09bdc759ae
3 changed files with 20 additions and 6 deletions

2
.gitignore vendored
View File

@ -30,7 +30,7 @@ test/
*.out *.out
*.class *.class
*.o *.o
*.log
# Игнорируем артефакты сборки # Игнорируем артефакты сборки
/dist/ /dist/

View File

@ -18,11 +18,23 @@
## Install ## Install
1. Клонируем образ
``` ```
git clone https://git.xander.cx.ua/Xanders25/linkedin.git git clone https://git.xander.cx.ua/Xanders25/linkedin.git
``` ```
2. Переходим в папку
> Добавляем .env (Создаём через nano в файле envtemp посмотреть какие переменные нужны ) ```
cd linkedin
```
3. Создаём папку logs
```
mkdir logs
```
4. Создаём .env ( nano в файле envtemp посмотреть какие переменные нужны )
```
nano .env
```
5. Сохраняем!!!

View File

@ -8,14 +8,16 @@ from datetime import datetime
from dotenv import load_dotenv from dotenv import load_dotenv
import os import os
load_dotenv()
# # Ваши учетные данные LinkedIn # # Ваши учетные данные LinkedIn
username = os.getenv('USERNAME')
password = os.getenv('PASSWD')
configure_global_logging() configure_global_logging()
app = FastAPI() app = FastAPI()
username = os.getenv('USERNAME')
password = os.getenv('PASSWD')
api = Linkedin(username, password) api = Linkedin(username, password)
class Profile(BaseModel): class Profile(BaseModel):