1seok2

add firebase

node_modules
.env
.vscode
key.py
\ No newline at end of file
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Python" name="Python">
<configuration sdkName="" />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/check-your-instagram.iml" filepath="$PROJECT_DIR$/.idea/check-your-instagram.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[requires]
python_version = "3.8"
[dev-packages]
# check your instagram!
```
python -m pipenv shell
```
......
File mode changed
No preview for this file type
from pyrebase import pyrebase
import os
from config.key import *
config = {
"apiKey": FIREBASE_APIKEY,
"authDomain": FIREBASE_AUTHDOMAIN,
"projectId": FIREBASE_PROJECTID,
"storageBucket": FIREBASE_STORAGEBUCKET,
"messagingSenderId": FIREBASE_MESSAGINGSENDERID,
"appId": FIREBASE_APPID,
"databaseURL": FIREBASE_DATABASEURL,
"measurementId": FIREBASE_MEASUREMENTID
}
firebase = pyrebase.initialize_app(config)
db = firebase.database()
No preview for this file type
# crawler for instagram
click==7.1.2
Flask==1.1.2
gcloud==0.17.0
googleapis-common-protos==1.52.0
httplib2==0.19.0
itsdangerous==1.1.0
Jinja2==2.11.3
jws==0.1.3
MarkupSafe==1.1.1
oauth2client==3.0.0
protobuf==3.15.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycryptodome==3.4.3
pyparsing==2.4.7
Pyrebase==3.0.27
python-jwt==2.0.1
requests==2.11.1
requests-toolbelt==0.7.0
rsa==4.7.2
six==1.15.0
Werkzeug==1.0.1
import os
from config.firebase import db
print("-" * 60)
db.child("name").push({"company": "google"})