Your Name 4 년 전
부모
커밋
8ff25ba529
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 0
      tests/sel_client.py
  2. 1 1
      tests/selserver.py

+ 7 - 0
tests/sel_client.py

@@ -0,0 +1,7 @@
+import rpyc
+
+conn = rpyc.connect("139.162.121.30", 12345)
+conn.MyService
+x = conn.root.get_url('https://data.similarweb.com/api/v1/data?domain=yahoo.com.tw')
+
+time.sleep(9999)

+ 1 - 1
tests/selserver.py

@@ -13,7 +13,7 @@ class MyService(rpyc.Service):
         #jb.set_profile_path('/home/jared/.config/google-chrome/Default/')
         self.jb.set_profile_path('"/home/jared/.config/google-chrome/"')
 
-    def get_url(self,url):
+    def exposed_get_url(self,url):
         self.jb.get(url)
         driver=self.jb.get_driver()
         src=driver.page_source