1. Flávio Coelho
  2. ScholarScrap

Commits

Flavio Codeco Coelho  committed b277d36

adicionei mais arquivos

  • Participants
  • Parent commits 618eba0
  • Branches default

Comments (0)

Files changed (6)

File .eric4project/ScholarScrap.e4q

View file
  • Ignore whitespace
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE UserProject SYSTEM "UserProject-4.0.dtd">
+<!-- eric4 user project file for project ScholarScrap -->
+<!-- Saved: 2011-02-10, 16:20:38 -->
+<!-- Copyright (C) 2011 Flรกvio Codeรงo Coelho, fccoelho@gmail.com -->
+<UserProject version="4.0">
+</UserProject>

File .eric4project/ScholarScrap.e4t

View file
  • Ignore whitespace
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Tasks SYSTEM "Tasks-4.2.dtd">
+<!-- eric4 tasks file for project ScholarScrap -->
+<!-- Saved: 2011-02-10, 16:20:38 -->
+<Tasks version="4.2">
+</Tasks>

File .ropeproject/history

View file
  • Ignore whitespace
+€]q(]q]qe.

File .ropeproject/objectdb

  • Ignore whitespace
Binary file added.

File ScholarScrap.e4p

View file
  • Ignore whitespace
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE Project SYSTEM "Project-4.6.dtd">
 <!-- eric4 project file for project ScholarScrap -->
-<!-- Saved: 2011-02-10, 07:58:34 -->
+<!-- Saved: 2011-02-10, 16:20:38 -->
 <!-- Copyright (C) 2011 Flรกvio Codeรงo Coelho, fccoelho@gmail.com -->
 <Project version="4.6">
   <Language>en</Language>
     <Source>scholar/scholar/__init__.py</Source>
     <Source>scholar/scholar/settings.py</Source>
     <Source>__init__.py</Source>
+    <Source>scholar/scholar/spiders/scholar_spyder.py</Source>
+    <Source>scholar/scholar/spiders/pubmed.py</Source>
+    <Source>pubmed_soap.py</Source>
   </Sources>
   <Forms>
   </Forms>

File pubmed_soap.py

View file
  • Ignore whitespace
+"""
+Soap client to fetch articles from Pubmed
+"""
+
+from suds.client import Client
+eutils_url = 'http://eutils.ncbi.nlm.nih.gov/soap/v2.0/eutils.wsdl'
+url = 'http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_pubmed.wsdl'
+client_eu = Client(eutils_url)
+client = Client(url)
+
+#print client
+
+#print client_eu
+sres = client_eu.service.run_eSearch(db='pubmed', term="Dengue")
+print sres
+#result = client.service.run_eFetch(query_key="Dengue")
+#print result