From 6e02809f92a560ec052b0a415b97027679552d5f Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Wed, 16 May 2018 23:44:32 +0700 Subject: [PATCH 01/31] menambahkan scpus folder --- scopus/afiliasi.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 scopus/afiliasi.py diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py new file mode 100644 index 0000000..2229301 --- /dev/null +++ b/scopus/afiliasi.py @@ -0,0 +1 @@ +from pyscopus import Scopus \ No newline at end of file From a4be45ae70a3f0d9f8532b80f73a8ad92a1d5b43 Mon Sep 17 00:00:00 2001 From: AlwanSuryansah <37576414+AlwanSuryansah@users.noreply.github.com> Date: Thu, 17 May 2018 11:10:39 +0700 Subject: [PATCH 02/31] update menembahkan --- scopus/afiliasi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 2229301..3f86b51 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1 +1,3 @@ -from pyscopus import Scopus \ No newline at end of file +from pyscopus import Scopus + +app = From 43a365f724fab5b8a0045f3a08a694dfcff5b984 Mon Sep 17 00:00:00 2001 From: AlwanSuryansah <37576414+AlwanSuryansah@users.noreply.github.com> Date: Thu, 17 May 2018 11:11:43 +0700 Subject: [PATCH 03/31] menabahkan menambahkan untuk printah --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 3f86b51..35417cb 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1,3 +1,3 @@ from pyscopus import Scopus -app = +app = __ From ad4167bb87faae7a58c73e04d5a16a56b5af3322 Mon Sep 17 00:00:00 2001 From: AlwanSuryansah Date: Wed, 16 May 2018 11:22:57 +0700 Subject: [PATCH 04/31] menambahkan tulisan Scopus --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 35417cb..482634d 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1,3 +1,3 @@ from pyscopus import Scopus -app = __ +app = Scopus __ From 3e05f4050a23efcb0ddf594b9d2aa875373cc4d2 Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Thu, 17 May 2018 16:17:37 +0700 Subject: [PATCH 05/31] update file app.py, afliasi.py and swagger.json for my task --- app.py | 5 +++++ scopus/afiliasi.py | 6 ++++-- static/swagger.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index a4eea13..d769c17 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,5 @@ from flask import Flask,request +from scopus import afiliasi as afl app = Flask(__name__) @app.route('/') @@ -13,3 +14,7 @@ def show_post(post_id): @app.route('/crot', methods=['POST']) def login(): return request.form['anu'] + +@app.route('/scopus/AFFIL/') +def home(a): + return afl.hom(a) \ No newline at end of file diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 482634d..698566c 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1,3 +1,5 @@ -from pyscopus import Scopus +#from pyscopus import Scopus +#app = Scopus __ -app = Scopus __ +def hom(a): + return a+" Ganteng" \ No newline at end of file diff --git a/static/swagger.json b/static/swagger.json index bedda28..20dffc2 100644 --- a/static/swagger.json +++ b/static/swagger.json @@ -18,7 +18,7 @@ "tags": [ { "name": "peneliti", - "description": "kelas 2c", + "description": "kelas 2B", "externalDocs": { "description": "Find out more", "url": "http://peuyeum.com" From 449798fb21835c38798742f268624c935f2528ed Mon Sep 17 00:00:00 2001 From: wildankw123 Date: Thu, 17 May 2018 19:44:47 +0700 Subject: [PATCH 06/31] menambahkan --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d769c17..8d3eee2 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ @app.route('/') def hello_world(gurih): - return gurih + return gurih @app.route('/post/') def show_post(post_id): From ee0c319b086e2e8cc087cb3b11d1d2ca4637d1a7 Mon Sep 17 00:00:00 2001 From: Teduh Sanubari Date: Thu, 17 May 2018 21:39:00 +0700 Subject: [PATCH 07/31] Menambahkan --- scopus/afiliasi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 698566c..29119ab 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -2,4 +2,5 @@ #app = Scopus __ def hom(a): - return a+" Ganteng" \ No newline at end of file + return a+" Ganteng" + \ No newline at end of file From 873661d9d3978e4a92a7efd33172e10370e2b5c8 Mon Sep 17 00:00:00 2001 From: Dinda Ayu Pratiwi Date: Thu, 17 May 2018 22:08:19 +0700 Subject: [PATCH 08/31] menambahkan --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 29119ab..4b8a8dc 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -2,5 +2,5 @@ #app = Scopus __ def hom(a): - return a+" Ganteng" + return a+" Ganteng aku tuh" \ No newline at end of file From 9d8216a9541821181bccb36e879a696ec6b410f2 Mon Sep 17 00:00:00 2001 From: AlwanSuryansah Date: Fri, 18 May 2018 06:30:56 +0700 Subject: [PATCH 09/31] menambahkan memberikan penamaan --- scopus/afiliasi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 4b8a8dc..f44cab2 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1,6 +1,7 @@ -#from pyscopus import Scopus -#app = Scopus __ +from pyscopus import Scopus + +app = Scopus (__nama__) def hom(a): return a+" Ganteng aku tuh" - \ No newline at end of file + From 89c165342510d6fe30bfc2de8607eca1e1520848 Mon Sep 17 00:00:00 2001 From: wildankw123 Date: Fri, 18 May 2018 19:00:58 +0700 Subject: [PATCH 10/31] menambahkan penamaan --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index f44cab2..525c11b 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,5 +3,5 @@ app = Scopus (__nama__) def hom(a): - return a+" Ganteng aku tuh" + return a+" Ganteng aku tuh " From 3159021fe202231d439a7d4e2fba34e128a4eeec Mon Sep 17 00:00:00 2001 From: Teduh Sanubari Date: Fri, 18 May 2018 23:01:25 +0700 Subject: [PATCH 11/31] Menambahkan di afiliasi --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 525c11b..4e91d4c 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,5 +3,5 @@ app = Scopus (__nama__) def hom(a): - return a+" Ganteng aku tuh " + return a+" Ganteng aku tuh gaes " From e2cc08dc80031f5639ffde1734f979c39e1fa655 Mon Sep 17 00:00:00 2001 From: Dinda Ayu Pratiwi Date: Fri, 18 May 2018 23:21:22 +0700 Subject: [PATCH 12/31] menambahkan kata kata menyakinkan --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 4e91d4c..cba19f7 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,5 +3,5 @@ app = Scopus (__nama__) def hom(a): - return a+" Ganteng aku tuh gaes " + return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaes" From 47f2f43f42ad6969db941d1e1fc73da33cb6042c Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Fri, 18 May 2018 23:42:36 +0700 Subject: [PATCH 13/31] Menambahkan method GET --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8d3eee2..fb28cd9 100644 --- a/app.py +++ b/app.py @@ -15,6 +15,6 @@ def show_post(post_id): def login(): return request.form['anu'] -@app.route('/scopus/AFFIL/') +@app.route('/scopus/AFFIL/', methods=['GET']) def home(a): return afl.hom(a) \ No newline at end of file From 92a240a52effc56bf5ec2629005afb52573cb85d Mon Sep 17 00:00:00 2001 From: AlwanSuryansah Date: Sat, 19 May 2018 09:51:23 +0700 Subject: [PATCH 14/31] menambahkan kata untuk penyakinkan --- scopus/afiliasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index cba19f7..2e4d6d5 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,5 +3,5 @@ app = Scopus (__nama__) def hom(a): - return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaes" + return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaessss" From 5f4dda1e79ef8d0d5dfddff6c1997de97e701a0d Mon Sep 17 00:00:00 2001 From: wildankw123 Date: Sat, 19 May 2018 20:38:11 +0700 Subject: [PATCH 15/31] memperbaiki komentar --- afiliasi.py | 7 +++++++ scopus/afiliasi.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 afiliasi.py diff --git a/afiliasi.py b/afiliasi.py new file mode 100644 index 0000000..2e4d6d5 --- /dev/null +++ b/afiliasi.py @@ -0,0 +1,7 @@ +from pyscopus import Scopus + +app = Scopus (__nama__) + +def hom(a): + return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaessss" + diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 2e4d6d5..873eb11 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,5 +3,5 @@ app = Scopus (__nama__) def hom(a): - return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaessss" + return a+" comment " From 9a931d818fbf1c67ea45b40b50235c42add979ab Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Sat, 19 May 2018 22:05:35 +0700 Subject: [PATCH 16/31] menghapus fle salah --- afiliasi.py | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 afiliasi.py diff --git a/afiliasi.py b/afiliasi.py deleted file mode 100644 index 2e4d6d5..0000000 --- a/afiliasi.py +++ /dev/null @@ -1,7 +0,0 @@ -from pyscopus import Scopus - -app = Scopus (__nama__) - -def hom(a): - return a+" Ganteng aku tuh gaes . Percaya tidak percaya ini nyata gaessss" - From fb54494e19646533b04fbc279d8ca080a48e694c Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Sat, 19 May 2018 22:06:01 +0700 Subject: [PATCH 17/31] memperbaiki file di folder scopus --- scopus/afiliasi.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 873eb11..424c0da 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -1,7 +1,16 @@ +#proses import library pyscopus dari app from pyscopus import Scopus -app = Scopus (__nama__) - +#Test Pencarian +search_df = def hom(a): - return a+" comment " + return a+" is Found" #memanggil variable a dengan menambah nilai/value is Found" + + + + + + + +#Lanjutkan di bawah sini guys, jangan di atas \ No newline at end of file From 1e1596b6eaae4d9a3abf3722766f0b5d3e6e3d7a Mon Sep 17 00:00:00 2001 From: Teduh Sanubari Date: Sat, 19 May 2018 22:30:15 +0700 Subject: [PATCH 18/31] Menambahkan komentar --- scopus/afiliasi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 424c0da..3a853db 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -4,7 +4,7 @@ #Test Pencarian search_df = def hom(a): - return a+" is Found" #memanggil variable a dengan menambah nilai/value is Found" + return a+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found" @@ -13,4 +13,5 @@ def hom(a): -#Lanjutkan di bawah sini guys, jangan di atas \ No newline at end of file +#Lanjutkan di bawah sini guys, jangan di atas + From c87954d98f61a8b8775bfcacef9394fe08ca6f14 Mon Sep 17 00:00:00 2001 From: Dinda Ayu Pratiwi Date: Sat, 19 May 2018 23:20:19 +0700 Subject: [PATCH 19/31] sudah di tambahin --- scopus/afiliasi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 3a853db..5f7b9f3 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -15,3 +15,4 @@ def hom(a): #Lanjutkan di bawah sini guys, jangan di atas + From ba11bcc9618075deddb749841a78ae2ec619e8df Mon Sep 17 00:00:00 2001 From: AlwanSuryansah Date: Sun, 20 May 2018 18:50:20 +0700 Subject: [PATCH 20/31] menambahkan identitas --- scopus/afiliasi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 5f7b9f3..075eaab 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,9 +3,10 @@ #Test Pencarian search_df = -def hom(a): - return a+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found" +def hom(abc): + return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found" + From 5b2554d85f87991be812ebc488bde562276bcdac Mon Sep 17 00:00:00 2001 From: wildankw123 Date: Sun, 20 May 2018 20:29:46 +0700 Subject: [PATCH 21/31] identitas --- afiliasi.py | 19 +++++++++++++++++++ scopus/afiliasi.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 afiliasi.py diff --git a/afiliasi.py b/afiliasi.py new file mode 100644 index 0000000..361a134 --- /dev/null +++ b/afiliasi.py @@ -0,0 +1,19 @@ +#proses import library pyscopus dari app +from pyscopus import Scopus + +#Test Pencarian +search_df = +def hom(abc): + return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found + + + + + + + + + +#Lanjutkan di bawah sini guys, jangan di atas + + diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 075eaab..361a134 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -4,7 +4,7 @@ #Test Pencarian search_df = def hom(abc): - return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found" + return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found From 886594510e4ef6429318c52ae22c5be23cbf4d61 Mon Sep 17 00:00:00 2001 From: Dinda Ayu Pratiwi Date: Sun, 20 May 2018 22:37:21 +0700 Subject: [PATCH 22/31] menambahkan komentar --- scopus/afiliasi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 361a134..a2b9073 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -17,3 +17,5 @@ def hom(abc): #Lanjutkan di bawah sini guys, jangan di atas + +#ini udah di lanjut di bawahnya ya \ No newline at end of file From 6646a962befc2b32ca6fc62d12d759eb6c0f9d11 Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Sun, 20 May 2018 23:28:01 +0700 Subject: [PATCH 23/31] menghapus file afilisiasi.py yang salah --- afiliasi.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 afiliasi.py diff --git a/afiliasi.py b/afiliasi.py deleted file mode 100644 index 361a134..0000000 --- a/afiliasi.py +++ /dev/null @@ -1,19 +0,0 @@ -#proses import library pyscopus dari app -from pyscopus import Scopus - -#Test Pencarian -search_df = -def hom(abc): - return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found - - - - - - - - - -#Lanjutkan di bawah sini guys, jangan di atas - - From e695ff0fd8c1980f9444ad1c8d13dc9cdc34c6f2 Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Sun, 20 May 2018 23:28:31 +0700 Subject: [PATCH 24/31] menambahkan tag comentar GET --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index fb28cd9..fa4452d 100644 --- a/app.py +++ b/app.py @@ -15,6 +15,6 @@ def show_post(post_id): def login(): return request.form['anu'] -@app.route('/scopus/AFFIL/', methods=['GET']) +@app.route('/scopus/AFFIL/', methods=['GET']) #penggunaan method GET untuk menampilkan data dalam bentuk tag HTML def home(a): return afl.hom(a) \ No newline at end of file From 71ead58c29a1e9e21ebe626bf1056b777b1c903c Mon Sep 17 00:00:00 2001 From: AlwanSuryansah Date: Mon, 21 May 2018 16:45:04 +0700 Subject: [PATCH 25/31] menambah kan inisialisasi yang baik --- scopus/afiliasi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index a2b9073..3f9cd12 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -3,8 +3,8 @@ #Test Pencarian search_df = -def hom(abc): - return abc+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found +def hom(abcd): + return abcd+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found @@ -18,4 +18,4 @@ def hom(abc): -#ini udah di lanjut di bawahnya ya \ No newline at end of file +#ini udah di lanjut di bawahnya ya From 56d2b1e3bf54ee33c5d9683827f62f3812717ed5 Mon Sep 17 00:00:00 2001 From: Teduh Sanubari Date: Mon, 21 May 2018 21:52:36 +0700 Subject: [PATCH 26/31] Menambahkan komentar --- scopus/afiliasi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 3f9cd12..e32d066 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -19,3 +19,7 @@ def hom(abcd): #ini udah di lanjut di bawahnya ya + + + +#Masih bisa dibawahnya juga From 96c4713ecc2ac947f59b8e7d0c2b2946e866665a Mon Sep 17 00:00:00 2001 From: wildankw123 Date: Mon, 21 May 2018 22:13:43 +0700 Subject: [PATCH 27/31] komentar --- scopus/afiliasi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index e32d066..91f7b69 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -23,3 +23,4 @@ def hom(abcd): #Masih bisa dibawahnya juga +#ga ngerti aku From 3a5f94b80dd5bfbf3f8e8f70a7cda68aa195a68c Mon Sep 17 00:00:00 2001 From: Dinda Ayu Pratiwi Date: Mon, 21 May 2018 22:50:05 +0700 Subject: [PATCH 28/31] menambahkan komentar lagi --- scopus/afiliasi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py index 91f7b69..91716aa 100644 --- a/scopus/afiliasi.py +++ b/scopus/afiliasi.py @@ -24,3 +24,4 @@ def hom(abcd): #Masih bisa dibawahnya juga #ga ngerti aku +#tolong ngertiin aku sekali aja \ No newline at end of file From c01a189f21123f80b02a6ad44e9b4e31059ae438 Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Mon, 21 May 2018 23:43:13 +0700 Subject: [PATCH 29/31] updated file --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index fa4452d..eac1fd1 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,5 @@ from flask import Flask,request -from scopus import afiliasi as afl +from scopus import afiliasi as afl #proses import file afiliasi.py dari folder scopus app = Flask(__name__) @app.route('/') From e072384f9c8cf6c3d18aaa9be67bfa320e0a1449 Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Tue, 22 May 2018 15:00:24 +0700 Subject: [PATCH 30/31] updated swagger.jso --- static/swagger.json | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/static/swagger.json b/static/swagger.json index 20dffc2..78cbf73 100644 --- a/static/swagger.json +++ b/static/swagger.json @@ -18,6 +18,14 @@ "tags": [ { "name": "peneliti", + "description": "kelas 2c", + "externalDocs": { + "description": "Find out more", + "url": "http://peuyeum.com" + } + }, + { + "name": "Scopus", "description": "kelas 2B", "externalDocs": { "description": "Find out more", @@ -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": [ From e246bf54a2c42193bc0a12e0b7e460a59f5d551b Mon Sep 17 00:00:00 2001 From: Kurnia Sandi Date: Tue, 22 May 2018 16:50:13 +0700 Subject: [PATCH 31/31] file baru --- app.py | 8 ++++---- scopus/Affil.py | 9 +++++++++ scopus/afiliasi.py | 27 --------------------------- 3 files changed, 13 insertions(+), 31 deletions(-) create mode 100644 scopus/Affil.py delete mode 100644 scopus/afiliasi.py diff --git a/app.py b/app.py index eac1fd1..fd999e9 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,5 @@ from flask import Flask,request -from scopus import afiliasi as afl #proses import file afiliasi.py dari folder scopus +from scopus import Affil as AF app = Flask(__name__) @app.route('/') @@ -15,6 +15,6 @@ def show_post(post_id): def login(): return request.form['anu'] -@app.route('/scopus/AFFIL/', methods=['GET']) #penggunaan method GET untuk menampilkan data dalam bentuk tag HTML -def home(a): - return afl.hom(a) \ No newline at end of file +@app.route('/scopus/AFFIL/', methods=['GET']) #penggunaan method GET untuk menampilkan data dalam bentuk tag HTML +def home(name): + return str(AF.cari(name)) \ No newline at end of file diff --git a/scopus/Affil.py b/scopus/Affil.py new file mode 100644 index 0000000..0eec56c --- /dev/null +++ b/scopus/Affil.py @@ -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) \ No newline at end of file diff --git a/scopus/afiliasi.py b/scopus/afiliasi.py deleted file mode 100644 index 91716aa..0000000 --- a/scopus/afiliasi.py +++ /dev/null @@ -1,27 +0,0 @@ -#proses import library pyscopus dari app -from pyscopus import Scopus - -#Test Pencarian -search_df = -def hom(abcd): - return abcd+"Data is Found" #memanggil variable a dengan menambah nilai/value Data is Found - - - - - - - - - -#Lanjutkan di bawah sini guys, jangan di atas - - - -#ini udah di lanjut di bawahnya ya - - - -#Masih bisa dibawahnya juga -#ga ngerti aku -#tolong ngertiin aku sekali aja \ No newline at end of file