You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed all your instruction but still getting the following an error
The buggy code
`from TikTokApi import TikTokapi
Starts T
api = TikTokapi("/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/browsermob-proxy/bin/browsermob-proxy")
The Number of trending TikToks you want to be displayed
results = 10
trending = api.trending(results)
for tiktok in trending:
# Prints the text of the tiktok
print(tiktok['itemInfos']['text'])
print(len(trending))
api.quit_browser()`
Error
`---------------------------------------------------------------------------
ProxyServerError Traceback (most recent call last)
in
2
3 # Starts T
----> 4 api = TikTokapi("/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/browsermob-proxy/bin/browsermob-proxy")
5
6 # The Number of trending TikToks you want to be displayed
Describe the bug
Followed all your instruction but still getting the following an error
The buggy code
`from TikTokApi import TikTokapi
Starts T
api = TikTokapi("/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/browsermob-proxy/bin/browsermob-proxy")
The Number of trending TikToks you want to be displayed
results = 10
trending = api.trending(results)
for tiktok in trending:
# Prints the text of the tiktok
print(tiktok['itemInfos']['text'])
print(len(trending))
api.quit_browser()`
Error
`---------------------------------------------------------------------------
ProxyServerError Traceback (most recent call last)
in
2
3 # Starts T
----> 4 api = TikTokapi("/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/browsermob-proxy/bin/browsermob-proxy")
5
6 # The Number of trending TikToks you want to be displayed
/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/TikTokApi/tiktok.py in init(self, browsermobDirectory, headless, manualSignature)
25 path=browsermobDirectory, options=dictf)
26 # "browsermob-proxy/bin/browsermob-proxy"
---> 27 self.server.start()
28 time.sleep(1)
29 self.proxy = self.server.create_proxy()
/Applications/Anaconda/anaconda3/lib/python3.7/site-packages/browsermobproxy/server.py in start(self, options)
125 if count == retry_count:
126 self.stop()
--> 127 raise ProxyServerError("Can't connect to Browsermob-Proxy")
128
129 def stop(self):
ProxyServerError: Can't connect to Browsermob-Proxy`
Desktop (please complete the following information):
Additional context
Downloaded all the files that you recommend including browsermob (and created the right folder) and also geckodriver
Spent hours and still cant get it to work.
Thanks.
The text was updated successfully, but these errors were encountered: