semvec/pypi-packages huggingface dataset:
scrapy-scrapedo 0.1.4
Fundemantal Scrapy support for Scrape.do API
License: MIT
Requires Python: >=3.8

# Scrapydo

Scrapy wrapper for running Scrapy spiders with Scrapedo API.

## Install

```bash
# get it from github
pip3 install git+https://github.com/scrape-do/scrapy-scrapedo

# or from pypi
pip3 install scrapy-scrapedo
```

## Usage

```python

from scrapydo import scrapy, scrapedo


class ScrapedoSampleCrawler(scrapy.Spider):
    name = "Scrape-do Sample Crawler"
    def __init__(self):
        super().__init__(scrapedo.RequestParameters(
        token="TOKEN", # Get your Scrape.do token from: dashboard.scrape.do
        params={
            "geoCode":"us",
            "super":False,
            "render":True,
            "playWithBrowser":[
                {"Action":"Click","Selector":"#manpage > div.mp > ul > li:nth-child(3) > a"},
                {"Action":"Wait","Timeout":2000},
                {"Action":"Execute","Execute":"document.URL"}
            ],
        }))
        
    def start_requests(self):
        urls = [
            'https://httpbin.co/',
        ]
        
        for url in urls:
            yield self.Request(url=url, callback=self.parse)
    def parse(self, response):
        print(response.body)
        print("target:",self.target_url(response))
            
````

You can also use the proxy mode to use the Scrape.do proxy service.

```python


from scrapydo import scrapy, scrapedo

class ScrapedoSampleCrawler(scrapy.Spider):
    name = "Scrape-do Sample Crawler"
    def __init__(self):
        super().__init__(scrapedo.RequestParameters(
        token="TOKEN", # Get your Scrape.do token from: dashboard.scrape.do
        params={
            "geoCode":"uk",
            "super":True,
        },
        proxy_mode=True,
        ))
    
    def start_requests(self):
        urls = [
            'https://httpbin.co/headers',
        ]
        
        for url in urls:
            yield self.Request(url=url, callback=self.parse)
    def parse(self, response):
        print(response.body)
        print("target:",self.target_url(response))
        
    

```
## Build

You may prefer to build the package from source code.

```bash

pip3 install setuptools wheel
python3 setup.py sdist bdist_wheel

```

Finally, you can install the package from the generated wheel file.

```bash
pip3 install dist/scrapy_scrapedo-0.1.4-py3-none-any.whl
```
wecom-bot-msg 0.1.1
A simple API wrapper for WeCom (Worker Wechat) group bot to send msg.
License: MIT
Requires Python: >=3.6

`wecom_bot_msg` is a simple wrapper for WeCom (Worker Wechat ) group bot API, to send text, image, audio, files etc in groups, check [official docs](https://developer.work.weixin.qq.com/document/path/91770) for more information.

`wecom_bot_msg` 是给企业微信群机器人 API 的封装，用作发送文本、图片、语音、文件等各类消息，更多信息可以查看[官方文档](https://developer.work.weixin.qq.com/document/path/91770)

# Installation

Install `wecom_bot_msg` using pip

```bash
pip install wecom_bot_msg
```

## Usage

Simple usage to send text or image

```python

from wecom_bot_msg import WecomBot

bot = WecomBot(api_key='YOUR_API_KEY')

# send text
success, err_msg = bot.send_text('hello')

# send image
success, err_msg = bot.send_image('/LOCAL/PATH/IMAGE')
```

More examples

```python
# sent text with mentioned list (or mentioned_mobile_list)
bot.send_text('hello', mentioned_list=['kim','kttiy'])
bot.send_text('hello', mentioned_mobile_list=['18688888888','15688888888'])
```

## TODO

- [x] send text
- [x] send image
- [ ] send markdown
- [ ] upload file
- [ ] send audio
- [ ] send news
- [ ] send template card