trywebscraping


Nametrywebscraping JSON
Version 0.1.37 PyPI version JSON
download
home_pagehttps://github.com/yourusername/trywebscraping
SummaryA fast web scraping library
upload_time2024-10-23 19:54:14
maintainerNone
docs_urlNone
authorLuke Lucas
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <img src="https://www.trywebscraping.com/_next/image?url=%2Fassets%2Flogo.png&w=128&q=75" alt="Try Web Scraping Logo">

# Try Web Scraping

To get started, run: `pip install trywebscraping`

Here's some example code to help you begin:

```python
from trywebscraping import Fetch

hn = Fetch("https://news.ycombinator.com")
articles = hn.query("tr.athing").extract({
    "rank": "span.rank",
    "title": "td.title a",
    "link": "td.title a@href"
}).limit(10)
print(articles)
```

Or for a more complex example:

```python
from trywebscraping import Fetch

amazon = Fetch("https://www.amazon.com/s?k=cracking+the+coding+interview")
product_listings = amazon.query("div.s-card-container").extract({
    "title": "h2 a span.a-text-normal",
    "price": "span.a-price-whole",
    "rating": "span.a-icon-alt",
    "num_reviews": "a-size-base",
    "product_link": "h2 a.a-link-normal@href",
    "product_image": "img.s-image@src"
})

print(product_listings)
```

If you're interested in this project, please connect with me:

- Schedule a call: https://cal.com/lukelucas/30min
- Email: luke.lucas@trywebscraping.com

For issues, feedback, or general discussion about the library, you can use our GitHub repository: https://github.com/webscrape/trywebscraping-python

I appreciate any communications, regardless of how you choose to reach out!



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yourusername/trywebscraping",
    "name": "trywebscraping",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Luke Lucas",
    "author_email": "luke.lucas@trywebscraping.com",
    "download_url": "https://files.pythonhosted.org/packages/9e/c0/ad9c1a41bfab5602132065debcbeba174d340e9a58351a83c70f42f12900/trywebscraping-0.1.37.tar.gz",
    "platform": null,
    "description": "<img src=\"https://www.trywebscraping.com/_next/image?url=%2Fassets%2Flogo.png&w=128&q=75\" alt=\"Try Web Scraping Logo\">\n\n# Try Web Scraping\n\nTo get started, run: `pip install trywebscraping`\n\nHere's some example code to help you begin:\n\n```python\nfrom trywebscraping import Fetch\n\nhn = Fetch(\"https://news.ycombinator.com\")\narticles = hn.query(\"tr.athing\").extract({\n    \"rank\": \"span.rank\",\n    \"title\": \"td.title a\",\n    \"link\": \"td.title a@href\"\n}).limit(10)\nprint(articles)\n```\n\nOr for a more complex example:\n\n```python\nfrom trywebscraping import Fetch\n\namazon = Fetch(\"https://www.amazon.com/s?k=cracking+the+coding+interview\")\nproduct_listings = amazon.query(\"div.s-card-container\").extract({\n    \"title\": \"h2 a span.a-text-normal\",\n    \"price\": \"span.a-price-whole\",\n    \"rating\": \"span.a-icon-alt\",\n    \"num_reviews\": \"a-size-base\",\n    \"product_link\": \"h2 a.a-link-normal@href\",\n    \"product_image\": \"img.s-image@src\"\n})\n\nprint(product_listings)\n```\n\nIf you're interested in this project, please connect with me:\n\n- Schedule a call: https://cal.com/lukelucas/30min\n- Email: luke.lucas@trywebscraping.com\n\nFor issues, feedback, or general discussion about the library, you can use our GitHub repository: https://github.com/webscrape/trywebscraping-python\n\nI appreciate any communications, regardless of how you choose to reach out!\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A fast web scraping library",
    "version": "0.1.37",
    "project_urls": {
        "Homepage": "https://github.com/yourusername/trywebscraping"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7518cb3983c7d94925ad75fcb31dee7024d6c8603bf766c6e96d8eb97519903",
                "md5": "fe271d916d1968a88157d287d2cd8d49",
                "sha256": "003de147aeb03dd2e5f58d2a97fc8c1c754c54d3f33ad562847cbb4b5c4a20b3"
            },
            "downloads": -1,
            "filename": "trywebscraping-0.1.37-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fe271d916d1968a88157d287d2cd8d49",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 12001,
            "upload_time": "2024-10-23T19:54:12",
            "upload_time_iso_8601": "2024-10-23T19:54:12.608832Z",
            "url": "https://files.pythonhosted.org/packages/a7/51/8cb3983c7d94925ad75fcb31dee7024d6c8603bf766c6e96d8eb97519903/trywebscraping-0.1.37-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ec0ad9c1a41bfab5602132065debcbeba174d340e9a58351a83c70f42f12900",
                "md5": "40fcf201b1a14f592b7c01d4f0358bcf",
                "sha256": "7dab884f983af428a60061d2a714d502a852edd8b79934ae4f936bcfacad8f84"
            },
            "downloads": -1,
            "filename": "trywebscraping-0.1.37.tar.gz",
            "has_sig": false,
            "md5_digest": "40fcf201b1a14f592b7c01d4f0358bcf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10615,
            "upload_time": "2024-10-23T19:54:14",
            "upload_time_iso_8601": "2024-10-23T19:54:14.179692Z",
            "url": "https://files.pythonhosted.org/packages/9e/c0/ad9c1a41bfab5602132065debcbeba174d340e9a58351a83c70f42f12900/trywebscraping-0.1.37.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-23 19:54:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "trywebscraping",
    "github_not_found": true,
    "lcname": "trywebscraping"
}
        
Elapsed time: 0.60684s