__init__.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:facebook-scraper 作者: bacilo 项目源码 文件源码
def create_request_object(rel_url, req_type, req_to, job_id):
        """
        Creates request strings to use for batch_requests,
        based on rel_url

        type: can be used to determine the type of request when reading
            the response
        to: can be used to link certain attributes (like 'reactions')
            to the post they belong
        """
        # print(rel_url)
        return {
            'req_type': req_type,
            'req_to': req_to,
            'job_id': job_id,
            'req': {
                "method": "GET",
                "relative_url": "{}".format(rel_url)
                }
            }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号