MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

mobilePhoneSpecsScrapper.py:12–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected