๐ท️ Web Scraper
Android เคे เคฒिเค HTML Parser
⚠️ เคจोเค: Browser security เคी เคตเคเคน เคธे เคนเคฎ directly websites เคธे data เคจเคนीं เคฒे เคธเคเคคे।
✅ Solution: เคिเคธी page เคा HTML เคฏเคนाँ paste เคเคฐें!
๐ฑ Demo Example
<h2>iPhone 15 Pro</h2>
<p class="price">₹1,34,900</p>
<p class="rating">⭐ 4.8</p>
</div>
<div class="product">
<h2>Samsung Galaxy S24</h2>
<p class="price">₹79,999</p>
<p class="rating">⭐ 4.6</p>
</div>
๐ เคैเคธे เคเคธ्เคคेเคฎाเคฒ เคเคฐें
Step 1: HTML เคॉเคชी เคเคฐें
เคिเคธी website เคชเคฐ เคाเคं → Right-click → "View Page Source" → HTML copy เคเคฐें
Step 2: เคฏเคนाँ Paste เคเคฐें
เคชเคนเคฒे tab เคฎें เคाเคเคฐ HTML paste เคเคฐें
Step 3: Selector เคกाเคฒें
เคो data เคाเคนिเค เคเคธเคा CSS selector เคกाเคฒें (เคैเคธे: .price, h1, #title)
Step 4: Parse เคเคฐें
"Data เคจिเคाเคฒें" button เคฆเคฌाเคं เคเคฐ results เคฆेเคें!
๐ฏ Common Selectors
.classname
Class เคे เคธाเคฅ เคธเคญी elements (เคเคฆाเคนเคฐเคฃ: .product, .price)
#idname
Specific ID เคตाเคฒा element (เคเคฆाเคนเคฐเคฃ: #header, #title)
tagname
เคธเคญी tags (เคเคฆाเคนเคฐเคฃ: h1, p, div, a)
tag.class
Specific tag + class (เคเคฆाเคนเคฐเคฃ: div.product, p.price)
Comments
Post a Comment