Coder Social home page Coder Social logo

ninisite_crawler's Introduction

NiniSite Crawler

This repository contains a web crawler for the NiniSite forums. It allows you to crawl topics and comments from specific forums and topics on the NiniSite website (https://www.ninisite.com).

Installation

To use this crawler, you need to have Python installed on your system. Clone this repository and install the required dependencies using the following command:

pip install -r requirements.txt

Usage

NinisiteTopicCrawler

The NinisiteTopicCrawler class allows you to crawl comments from a specific topic on NiniSite. Here's an example of how to use it:

crawler = NinisiteTopicCrawler(topic_id)
comments_df = crawler.crawl_comments_in_topic()

Replace topic_id with the ID of the topic you want to crawl. The crawl_comments_in_topic method returns a Pandas DataFrame containing the crawled comments.

NiniSiteForumCrawler

The NiniSiteForumCrawler class allows you to crawl topics from a specific forum on NiniSite. Here's an example of how to use it:

crawler = NiniSiteForumCrawler(forum_number)
topics_df = crawler.crawl_topics_in_forum(starting_page, number_pages)

Replace forum_number with the number of the forum you want to crawl. The optional parameters starting_page and number_pages allow you to specify the starting page and the number of pages to crawl (default values: starting_page=1, number_pages=10). The crawl_topics_in_forum method returns a Pandas DataFrame containing the crawled topics.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Acknowledgments

This crawler was developed as a part of a project and is not affiliated with or endorsed by NiniSite.

ninisite_crawler's People

Contributors

akhorramrouz avatar

Watchers

 avatar

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.