Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f49eaac964 | ||
|
|
48920ae54a |
@@ -14,8 +14,7 @@ git clone https://github.com/DarkShyMW/Random-batpony-generator.git
|
||||
От туда копируем ваш api_key. Его вставляем в 8 строку - api_key = "тут_ваш_ключ"
|
||||
|
||||
```
|
||||
pip3 install Flask
|
||||
pip3 install requests
|
||||
pip install flask requests flask_bootstrap
|
||||
|
||||
cd /путь_до_папки/
|
||||
python3 pony.git
|
||||
|
||||
4
pony.py
4
pony.py
@@ -9,7 +9,7 @@ Bootstrap(app)
|
||||
|
||||
|
||||
# Пишем свой API-key из https://derpibooru.org/registrations/edit
|
||||
api_key = "nYTuAw8EHfHyfL6TgXPk"
|
||||
api_key = "ваш_токен"
|
||||
querry = 'batpony,safe,cute'
|
||||
|
||||
# Ищем картинки на derpi
|
||||
@@ -35,4 +35,4 @@ def index():
|
||||
tags=random_batpony_image["tags"])
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
app.run(debug=True)
|
||||
|
||||
Reference in New Issue
Block a user