You are viewing a single comment's thread from:

RE: Python IPFS simple manger

in #python7 years ago

Hmm, I guess there are no peers online at the moment that have the file because it's not loading. I'd love to take a look at it since I've been messing around with IPFS myself. More specifically, trying to build an index of everything available on the IPFS network. But I'm having a hard time finding the filename of hashes. Doing something like file/ls <hash> returns all info needed except for the filename... :(

Sort:  

Sorry I kept modifying the file and unpinning. And I haven't delved too deep into finding out other peoples file names from their hashed content. I get the name from files already in your local storage. Anyway, I opted to simple use IPNS to change the file when I update it again. It should work now. if not try it at www.github.com/jjvilm/tools (the file is called Clipfsman.py (short for client ipfs manager lol)
Thanks for you intrest, let me know what you think of it. I love! the concept of IPFS, it definitely is still needing a better way to manager hashes and what not, so yesterday I coded for a good time and that file was the result.

Ah I see. I thought you were able to resolve the name of any given hash. The only reliable method I found for that is knowing the root hash (ie resolving the name hash of a peer) or finding the parent hash. Doing ls on anything else will only show the names of any links but not that hash itself. It's very frustrating. I currently get these results with scraping DHT logs and resolving+ls'ing swarm peer names: https://i.imgur.com/iyXY2jp.png