|
@@ -17,7 +17,13 @@ class MyService(rpyc.Service):
|
|
|
self.jb.get(url)
|
|
|
driver=self.jb.get_driver()
|
|
|
src=driver.page_source
|
|
|
- print(src)
|
|
|
+ return src
|
|
|
+
|
|
|
+ def exposed_get_driver(self):
|
|
|
+ return self.jb.get_driver()
|
|
|
+
|
|
|
+
|
|
|
+# print(src)
|
|
|
#'https://data.similarweb.com/api/v1/data?domain=yahoo.com.tw'
|
|
|
if __name__ == "__main__":
|
|
|
server = ThreadedServer(MyService, port = 12345)
|