Skip to content

Commit

Permalink
adding init files.
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix24 committed Mar 10, 2012
1 parent 040f802 commit d0f3a07
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 0 deletions.
59 changes: 59 additions & 0 deletions backend/parser/inventory/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env python

SHOPS = {
"sulekha" : {
"pages" : False,
"mobile" : "http://deals.sulekha.com/mobiles_bengaluru" },
"adexmart" : {
"pages" : True,
"mobile" : "http://adexmart.com/16-mobile-phones?p=%s" },
"infibeam" : {
"pages" : True,
"mobile" : "http://www.infibeam.com/Mobiles/#store=Mobiles&page=%s" },
"indiaplaza" : {
"pages" : False,
"mobile" : "http://www.indiaplaza.com/mobiles/" },
"saholic" : {
"pages" : True,
"mobile" : "http://www.saholic.com/all-mobile-phones/10001?&page=%s" },
"flipkart" : {
"pages" : True,
"mobile" : "http://flipkart.com/mobiles/all/%s?layout=list" },
"letsbuy" : {
"pages" : True,
"mobile" : "http://www.letsbuy.com/mobile-phones-mobiles-c-254_88#pg=%s" },
"talash" : {
"pages" : True,
"mobile" : "http://www.talash.com/online-mobile-phones-india/?sort=&page=%s" },
"homeshop18" : {
"pages" : False,
"mobile" : "http://www.homeshop18.com/mobiles-26-accessories/category:3024/" },
"yebhi" : {
"pages" : True,
"mobile" : "" },
"snapdeal" : {
"pages" : True,
"mobile" : "" },
"themobilestore" : {
"pages" : True,
"mobile" : "http://www.themobilestore.in/home-mobiles-&-tablet-mobiles#/?page=%s" },
"futurebazaar" : {
"pages" : True,
"mobile" : "http://www.futurebazaar.com/mobiles/ch/2459/?page=%s" },
"ibazaar" : { "pages" : True, "mobile" : "" },
"taggle" : { "pages" : True, "mobile" : "" },
"buytheprice" : { "pages" : True, "mobile" : "" },
"landmark" : { "pages" : True, "mobile" : "" },
"nbcindia" : { "pages" : True, "mobile" : "" },
"pustak" : { "pages" : True, "mobile" : "" },
"rediff" : { "pages" : True, "mobile" : "" },
"tradus" : { "pages" : True, "mobile" : "" },
"uread" : { "pages" : True, "mobile" : "" },
"friendsofbooks" : { "pages" : True, "mobile" : "" },
"crosword" : { "pages" : True, "mobile" : "" },
"coralhub" : { "pages" : True, "mobile" : "" },
"coinjoos" : { "pages" : True, "mobile" : "" },
"cerramatter" : { "pages" : True, "mobile" : "" },
"bookadda" : { "pages" : True, "mobile" : "" },
"a1books" : { "pages" : True, "mobile" : "" },
}
70 changes: 70 additions & 0 deletions backend/parser/tours/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env python

TOURS = {
"sotctours" : {
"pages" : True,
"urls" : [
"http://www.sotctours.com/Destinations.aspx?ServiceType=1&Destination=7"
]
},
"kesari" : {
"pages" : True,
"urls" : [
"http://www.kesari.in/Speciality-Tours/Shimla-Manali-CE.asp"
]
},
"expedia" : {
"pages" : True,
"urls" : [
"http://www.expedia.co.in/holiday-packages.aspx"
]
},
"crazeal" : {
"pages" : True,
"urls" : [
"http://www.crazeal.com/deals/travel"
]
},
"makemytrip": {
"pages" : True,
"urls" : [
"http://www.makemytrip.com/holidays-india",
"http://www.makemytrip.com/holidays-international"
]
},
"travelguru": {
"pages" : True,
"urls" : [
"http://www.travelguru.com/vacations/tours/index.shtml",
"http://www.travelguru.com/vacations/International/index.shtml"
]
},
"snapdeal" : {
"pages" : True,
"urls" : [
"http://www.snapdeal.com/getaways-Mumbai"
]
},
"yatra" : {
"pages" : True,
"urls" : [
"http://www.yatra.com/Holiday/",
"http://www.yatra.com/Holiday/international/",
"http://www.yatra.com/hotels-india/fromdelhi.html"
]
},
"via" : {
"pages" : True,
"urls" : [
"http://www.via.com/holidays",
"http://www.via.com/holidays/mauritius",
"http://www.via.com/holidays/singapore",
"http://www.via.com/holidays/dubai",
"http://www.via.com/holidays/kerala",
"http://www.via.com/holidays/shimla",
"http://www.via.com/holidays/manali",
"http://www.via.com/holidays/goa"
]
}
}

Empty file added backend/test/__init__.py
Empty file.
11 changes: 11 additions & 0 deletions backend/test/suite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python

from unittest import main

from test.parser.inventory.test_saholic import *
from test.parser.inventory.test_flipkart import *


if __name__ == '__main__':
main()

0 comments on commit d0f3a07

Please sign in to comment.