(self)
| 10 | |
| 11 | class Phonearena: |
| 12 | def __init__(self): |
| 13 | self.phones = [] |
| 14 | self.features = ["Brand", "Model Name", "Model Image"] |
| 15 | self.temp1 = [] |
| 16 | self.phones_brands = [] |
| 17 | self.url = "https://www.phonearena.com/phones/" # GSMArena website url |
| 18 | # Folder name on which files going to save. |
| 19 | self.new_folder_name = "GSMArenaDataset" |
| 20 | # It create the absolute path of the GSMArenaDataset folder. |
| 21 | self.absolute_path = os.getcwd().strip() + "/" + self.new_folder_name |
| 22 | |
| 23 | def crawl_html_page(self, sub_url): |
| 24 | url = sub_url # Url for html content parsing. |
nothing calls this directly
no outgoing calls
no test coverage detected