Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples #2

Open
ny2292000 opened this issue Apr 18, 2019 · 4 comments
Open

Examples #2

ny2292000 opened this issue Apr 18, 2019 · 4 comments

Comments

@ny2292000
Copy link

Dear Hika,

I couldn't understand how to use an instance of the DataTree class.

Could you provide an example with the class creation. Html file reading, Node printout etc.
It seem to be exactly what I would need but I fail to understand how to use it.

For instance. Do I have to know the structure of the HTML to extract a node. That seems to be the case from reading the examples.

Any help would be appreciated. Thanks

@hikavdh
Copy link
Contributor

hikavdh commented Apr 22, 2019

If you are looking for implementation details, look at https://github.com/tvgrabbers/tvgrabpyAPI and then especially the code in tv_grab_fetch.py for fetching the pages and extracting the data and tv_grab_IO.py for testing of the datadefs.

@hikavdh
Copy link
Contributor

hikavdh commented Apr 22, 2019

It is for what I created this module and the only implementation so far I am aware of.

@hikavdh
Copy link
Contributor

hikavdh commented Apr 22, 2019

You do need to know the structure to extract the data, however you can with the testing module create a human readable view of the node structure on which base you can create a datadef. If you on further examination are missing things, let me know.

@ny2292000
Copy link
Author

ny2292000 commented Apr 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants