| Line 123... |
Line 123... |
| 123 |
return price_string.strip().replace('Rs.', '').replace('Rs', '').replace(',', '').replace(' ', '').replace(' ', '').split('.')[0]
|
123 |
return price_string.strip().replace('Rs.', '').replace('Rs', '').replace(',', '').replace(' ', '').replace(' ', '').split('.')[0]
|
| 124 |
|
124 |
|
| 125 |
def getSearchURL(source, name):
|
125 |
def getSearchURL(source, name):
|
| 126 |
|
126 |
|
| 127 |
search_urls = {
|
127 |
search_urls = {
|
| 128 |
'flipkart': 'http://www.flipkart.com/search-mobiles?query=$$&from=all&searchGroup=mobiles',
|
128 |
'flipkart': 'http://www.flipkart.com/search/a/all?query=$$',
|
| 129 |
'homeshop18': 'http://www.homeshop18.com/$$/search:$$/categoryid:3024',
|
129 |
'homeshop18': 'http://www.homeshop18.com/search:$$',
|
| 130 |
'adexmart': 'http://adexmart.com/search.php?orderby=position&orderway=desc&search_query=$$',
|
130 |
'adexmart': 'http://adexmart.com/search.php?orderby=position&orderway=desc&search_query=$$',
|
| 131 |
'infibeam': 'http://www.infibeam.com/Mobiles/search?q=$$',
|
131 |
'infibeam': 'http://www.infibeam.com/search?q=$$',
|
| 132 |
'letsbuy': 'http://www.letsbuy.com/advanced_search_result.php?cPath=254&keywords=$$',
|
- |
|
| 133 |
'snapdeal': 'http://www.snapdeal.com/search?catId=&categoryId=12&locUsed=false&vertical=p&keyword=$$',
|
132 |
'snapdeal': 'http://www.snapdeal.com/search?catId=&categoryId=12&locUsed=false&vertical=p&keyword=$$',
|
| 134 |
'sulekha': 'http://mobiles.sulekha.com/search.htm?cx=partner-pub-3470583419345383%3A8ggsimfcaaa&cof=FORID%3A10&ie=ISO-8859-1&q=$$&sa=Go',
|
133 |
'sulekha': 'http://mobiles.sulekha.com/search.htm?cx=partner-pub-3470583419345383%3A8ggsimfcaaa&cof=FORID%3A10&ie=ISO-8859-1&q=$$&sa=Go',
|
| 135 |
'tradus': 'http://www.tradus.com/search/tradus_search/?query=$$'
|
134 |
'tradus': 'http://www.tradus.com/search/tradus_search/?query=$$'
|
| 136 |
|
135 |
|
| 137 |
}
|
136 |
}
|