Giter Site home page Giter Site logo

Screenshot capture feature about torbot HOT 7 OPEN

PSNAppz avatar PSNAppz commented on June 1, 2024
Screenshot capture feature

from torbot.

Comments (7)

PSNAppz avatar PSNAppz commented on June 1, 2024 1

@pavankalyan224847 This is open and not assigned to anyone.

from torbot.

KingAkeem avatar KingAkeem commented on June 1, 2024

If anyone wants to take on this task before I do, here's some context.

You should make use of the LinkTree class which uses treelib to construct a tree data structure that can be printed, downloaded use tree operations such as searching the tree.
https://github.com/DedSecInside/TorBot/blob/dev/torbot/modules/linktree.py

Using the class requires passing the root node of the tree and how far you would like the tree to be built, depth-wise

tree = LinkTree(root = "https://www.example.com", depth = 2) # builds tree on instantiation 
tree.show() # prints tree to std output
tree.save("test.txt") # saves tree results to `test.txt`

The tree nodes currently only save the URL, but treelib has a mechanism to extend nodes to store data.
https://treelib.readthedocs.io/en/latest/index.html#advanced-usage

class WebMetadata(object):
  def __init__(self, html, headers): 
            self.html = html
            self.headers = headers

# using treelib library
tree = Tree()
resp = requests.get("https://www.example.com")
tree.create_node("root", "root", data=WebMetadata(resp.text, resp.headers)) # passing html and headers

from torbot.

pavankalyan224847 avatar pavankalyan224847 commented on June 1, 2024

is this issue closed or open ?

from torbot.

KingAkeem avatar KingAkeem commented on June 1, 2024

This comment #270 (comment) is out of date.

The LinkTree does still exist but has been refactored completely, you can check out the refactored code here.

https://github.com/DedSecInside/TorBot/blob/dev/torbot/modules/linktree.py

Let me know if you have any questions.

from torbot.

pavankalyan224847 avatar pavankalyan224847 commented on June 1, 2024

can you assign this to me i would like to work on it

from torbot.

KingAkeem avatar KingAkeem commented on June 1, 2024

@pavankalyan224847 Done!

from torbot.

KingAkeem avatar KingAkeem commented on June 1, 2024

Updates?

from torbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.