Subversion Repositories SmartDukaan

Rev

Rev 4106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4106 Rev 4110
Line 3... Line 3...
3
 
3
 
4
@author: Varun Gupta
4
@author: Varun Gupta
5
'''
5
'''
6
from BaseScraper import BaseScraper
6
from BaseScraper import BaseScraper
7
from BeautifulSoup import BeautifulSoup
7
from BeautifulSoup import BeautifulSoup
8
from FileUtils import Writer
-
 
9
 
8
 
10
import json
9
import json
11
 
10
 
12
class MySmartPrice(BaseScraper):
11
class MySmartPrice(BaseScraper):
13
 
12
 
Line 101... Line 100...
101
            print e
100
            print e
102
            continue
101
            continue
103
    
102
    
104
    print phone_urls.__len__()
103
    print phone_urls.__len__()
105
 
104
 
106
    file_writer = Writer()
-
 
107
 
-
 
108
    for url in phone_urls:
105
    for url in phone_urls:
109
        print url
106
        print url
110
        map = scraper.getPhonePrices(url)
107
        map = scraper.getPhonePrices(url)
111
        saholic_id = scraper.getSaholicEntityId(map)
108
        saholic_id = scraper.getSaholicEntityId(map)
112
        print map
109
        print map