Skip to content

Affiliasi #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6e02809
menambahkan scpus folder
k-sandi May 16, 2018
a4be45a
update
AlwanSuryansah May 17, 2018
43a365f
menabahkan
AlwanSuryansah May 17, 2018
ad4167b
menambahkan tulisan Scopus
AlwanSuryansah May 16, 2018
3e05f40
update file app.py, afliasi.py and swagger.json for my task
k-sandi May 17, 2018
449798f
menambahkan
wildankw123 May 17, 2018
ee0c319
Menambahkan
teduhsanubari May 17, 2018
873661d
menambahkan
dindaayuprtw May 17, 2018
9d8216a
menambahkan memberikan penamaan
AlwanSuryansah May 17, 2018
89c1653
menambahkan penamaan
wildankw123 May 18, 2018
3159021
Menambahkan di afiliasi
teduhsanubari May 18, 2018
e2cc08d
menambahkan kata kata menyakinkan
dindaayuprtw May 18, 2018
47f2f43
Menambahkan method GET
k-sandi May 18, 2018
92a240a
menambahkan kata untuk penyakinkan
AlwanSuryansah May 19, 2018
5f4dda1
memperbaiki komentar
wildankw123 May 19, 2018
9a931d8
menghapus fle salah
k-sandi May 19, 2018
fb54494
memperbaiki file di folder scopus
k-sandi May 19, 2018
1e1596b
Menambahkan komentar
teduhsanubari May 19, 2018
c87954d
sudah di tambahin
dindaayuprtw May 19, 2018
ba11bcc
menambahkan identitas
AlwanSuryansah May 20, 2018
5b2554d
identitas
wildankw123 May 20, 2018
8865945
menambahkan komentar
dindaayuprtw May 20, 2018
6646a96
menghapus file afilisiasi.py yang salah
k-sandi May 20, 2018
e695ff0
menambahkan tag comentar GET
k-sandi May 20, 2018
71ead58
menambah kan inisialisasi yang baik
AlwanSuryansah May 21, 2018
56d2b1e
Menambahkan komentar
teduhsanubari May 21, 2018
96c4713
komentar
wildankw123 May 21, 2018
3a5f94b
menambahkan komentar lagi
dindaayuprtw May 21, 2018
c01a189
updated file
k-sandi May 21, 2018
e072384
updated swagger.jso
k-sandi May 22, 2018
e246bf5
file baru
k-sandi May 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from flask import Flask,request
from scopus import Affil as AF
app = Flask(__name__)

@app.route('/<gurih>')
def hello_world(gurih):
return gurih
return gurih

@app.route('/post/<int:post_id>')
def show_post(post_id):
Expand All @@ -13,3 +14,7 @@ def show_post(post_id):
@app.route('/crot', methods=['POST'])
def login():
return request.form['anu']

@app.route('/scopus/AFFIL/<name>', methods=['GET']) #penggunaan method GET untuk menampilkan data dalam bentuk tag HTML
def home(name):
return str(AF.cari(name))
9 changes: 9 additions & 0 deletions scopus/Affil.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#proses import library pyscopus dari app
from pyscopus import Scopus
key = '1e499709c626679a80b27fc8a207ceb3'
scopus = Scopus(key)

#Test Pencarian
def cari(name):
search = scopus.search("AFFIL("+name+")", count=10)
return search.head(10)
49 changes: 49 additions & 0 deletions static/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"url": "http://peuyeum.com"
}
},
{
"name": "Scopus",
"description": "kelas 2B",
"externalDocs": {
"description": "Find out more",
"url": "http://peuyeum.com"
}
},
{
"name": "jurnal",
"description": "Access to journal"
Expand Down Expand Up @@ -202,6 +210,47 @@
]
}
},
"/scopus/AFFIL/{afiliasi}": {
"get": {
"tags": [
"Scopus"
],
"summary": "Find profle peneliti by afiliasi",
"description": "Returns a multiple peneliti",
"operationId": "getPenelityByAffil",
"produces": [
"application/json"
],
"parameters": [
{
"name": "afiliasi",
"in": "path",
"description": "profil peneliti to return",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/Pet"
}
},
"400": {
"description": "Invalid ID supplied"
},
"404": {
"description": "Peneliti not found"
}
},
"security": [
{
"api_key": []
}
]
}
},
"/jurnal/inventory": {
"get": {
"tags": [
Expand Down