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