Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahed committed Nov 2, 2015
1 parent 4520010 commit b7f6bcc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions scraper.py
@@ -1,5 +1,5 @@
from bs4 import BeautifulSoup
import urllib
from urllib import urlopen
import scraperwiki

def convertirUrl(url):
Expand Down Expand Up @@ -226,14 +226,7 @@ def scrap_recurring(url):

EXISITING_CONTRACT_END_DATE= htmltext.find('div',{"class":"highlight_date_body"}).text

print ("REFERENCE="+REFERENCE)
print ("Title="+Title)
print ("Awarding body="+Awarding_body)
print ("Description="+Description)
print("Contact_type="+Contract_type)
print("Extendoptions="+Option_to_extend)
print("Cvp="+CVP_codes)
print("ExistingDate="+EXISITING_CONTRACT_END_DATE)


data={"ID":unicode(ID), \
"Url":unicode(url),\
Expand Down Expand Up @@ -288,4 +281,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit b7f6bcc

Please sign in to comment.