Skip to content
This repository was archived by the owner on Sep 15, 2019. It is now read-only.
/ tdc Public archive

Directory crawler

License

Notifications You must be signed in to change notification settings

nortxort/tdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tdc

Directory crawler.

Two versions. Original python version and a version ported to php.

Requirements

python:

pip install requests requests_toolbelt

* Only required because of it's import in web.py. Not relevant to the code.

php:

Tested on windows using xampp.

Usage

Python:

import tdc

directory = tdc.Directory(crawl=True)

# show the results
for room in directory.rooms:
    print('%s, Users: %s, Broadcasters: %s, Watching: %s' % 
        (room.name, room.total_users, room.broadcasting_count, room.watching_count))

php:

Open the url to the php folder in your browser e.g http://localhost/path/to/php/folder/

Author

License

The MIT License (MIT)

Copyright (c) 2018 nortxort

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Directory crawler

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published