You are viewing a single comment's thread from:

RE: how to scrape data from hive UIs in python?

in Programming & Dev5 years ago

this is what I got so far, but I can't seem to figure out how to set the correct author and permlink from the list.

yes, I'm learning python :)

path = "leofinance.io/@ash/bitcoin-experiment-financial-freedom-with-faucets-week-39"
path_list = path.split("/")
print(path_list)
if path_list[0] == "https:":
del path_list[0:3]
else:
del path_list[0]
details = Comment(authorperm["author", path_list[0]], authorperm["permlink", path_list[1]])
print(details)