पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.8

chaleno

कम कोड लाइन्स के साथ वेबसाइटों से डेटा को आसानी से और तेजी से वेब स्क्रैपिंग करने के लिए एक पैकेज।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
362
लाइक
140
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add chaleno

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Chaleno एक Flutter/Dart पैकेज है जिसका उद्देश्य वेब स्क्रैपिंग को सरल बनाना है, जिससे डेवलपर्स कम कोड के साथ वेबसाइटों से डेटा निकाल सकते हैं। यह Android, iOS, Web, macOS, Windows और Linux जैसे कई प्लेटफॉर्मों पर HTML कंटेंट डाउनलोड और पार्स करने की प्रक्रिया को आसान बनाता है। दक्षता के लिए बनाया गया, Chaleno HTTP रिक्वेस्ट और DOM मैनिपुलेशन के लिए आमतौर पर आवश्यक बॉइलरप्लेट कोड को कम करता है, जिससे यह त्वरित डेटा संग्रह कार्यों के लिए आदर्श है। पैकेज Flutter प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत होता है और डार्ट की एसिंक्रोनस क्षमताओं का उपयोग करके तेज़ और विश्वसनीय स्क्रैपिंग ऑपरेशन को सुनिश्चित करता है।

उपयोग

  • ई-कॉमर्स वेबसाइट्स से उत्पाद विवरण निकालना
  • समाचार लेख या ब्लॉग पोस्ट को स्क्रैप करना
  • विश्लेषण के लिए सार्वजनिक डेटा एकत्र करना
  • सार्वजनिक वेब पृष्ठों से डेटा संग्रह को स्वचालित करना

मुख्य विशेषताएँ

  • वेब अनुसूचना के लिए न्यूनतम कोड
  • प्लेटफॉर्म के अनुकूल समर्थन
  • एमएल पार्सिंग निर्मित
  • असिंक्रोनस रिक्वेस्ट हैंडलिंग
  • हल्का और तेज़
  • Flutter के साथ आसान एकीकरण

इनके लिए उपयुक्त

  • डेटा एग्रीगेशन टूल्स बनाने वाले डेवलपर्स
  • अक्सर वेब डेटा निकालने की आवश्यकता वाले प्रोजेक्ट
  • त्वरित प्रोटोटाइपिंग स्क्रैपर्स
  • वास्तविक समय के सार्वजनिक डेटा की आवश्यकता वाले ऐप्स

विचार योग्य बातें

  • वेबसाइट की सेवा शर्तों का पालन सुनिश्चित करें
  • अवरोधित करने से बचने के लिए दर सीमांकन आवश्यक हो सकता है
  • जटिल JavaScript रेंडरिंग वाले साइट्स के लिए उपयुक्त नहीं
  • गतिशील सामग्री के लिए अतिरिक्त पार्सिंग तर्क की आवश्यकता हो सकती है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Chaleno

A flutter package for webscraping data from websites.

This package contains a set of high-level functions that make it easy to webscrap websites. It's multi-platform, supports mobile, desktop, and the web.

Usage

Scraping data from websites, this package gives you the power to scrape the web in an easy way.

Instance Chaleno class
var parser = await Chaleno().load('https://example.com');

It returns a Parser which we can use to start webscraping.

You can load HTML file from localhost.

var parser = await Chaleno().load('https://localhost/index');

var parser = await Chaleno().load('https://192.168.1.122/index');
Very simple to use

After instantiating Chaleno class, you can easily retrieve any data using few code lines

Result result = parser.getElementById('id');
print(result.text);

List<Result> results = parser.getElementsByClassName('className');
results.map((item) => print(item.text))

You can return a single result or a list of results and map them. You can find most popular methods and attributes in table below.

Example
final parser = await Chaleno().load('https://example.com');

final title = parser?.getElementById('title').text;
final contents = parser.querySelector('.content-card').text;
final image = parser.getElementsByTagName('img').src;

Importants Methods and propriets

Methods Mean
title Return the page title
getElementById Return a single element searching for ID on the page
getElementsByClassName Return a list of elements according class passed as parameter
getElementsByTagName Return a list of elements according tag passed as parameter
querySelector Return single element passing a list of selector
querySelectorAll Return a list of elements passing a list of selector
text Return text atribute from a tag returned
src Return src atribute from a tag returned
href Return href atribute from a tag returned

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।