Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최원석
/
2021-1-database-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1seok2
2021-03-01 21:28:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6ef3f2990b398726ce1f111c4c69b335be25f18
d6ef3f29
1 parent
600ba64c
add flask post
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
2 deletions
.DS_Store
.gitignore
crawler/crawler_instagram.py
server.py
templates/index.html
.DS_Store
0 → 100644
View file @
d6ef3f2
No preview for this file type
.gitignore
View file @
d6ef3f2
node_modules
.env
.vscode
chromedriver
key.py
\ No newline at end of file
key.py
...
...
crawler/crawler_instagram.py
0 → 100644
View file @
d6ef3f2
File mode changed
server.py
View file @
d6ef3f2
import
os
from
config.firebase
import
db
from
flask
import
Flask
,
render_template
from
flask
import
Flask
,
render_template
,
request
# data = {
# "age": 24,
...
...
@@ -23,6 +23,12 @@ def home():
return
render_template
(
'index.html'
)
@app.route
(
"/check"
,
methods
=
[
"POST"
])
def
check
():
value
=
request
.
form
[
'insta_id'
]
return
value
if
__name__
==
"__main__"
:
print
(
"-"
*
60
)
print
(
" server is start"
)
...
...
templates/index.html
View file @
d6ef3f2
<!DOCTYPE html>
<html>
<head>
<title>
check insta
</title>
</head>
<body>
<h1>
메인 화면
</h1>
<form
action=
"/check"
method=
"POST"
>
<input
id=
"insta_id"
placeholder=
"id"
type=
"text"
name=
"insta_id"
/>
<button>
제출
</button>
</form>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment