Giter VIP home page Giter VIP logo

baidu_sem_sdk's Introduction

只在Python3下工作/Only work in Python3


Baidu SEM SDK

This is a Python3 SDK for Baidu SEM.

Original SDK is writen by Python2. And it is out of date.

I changed it and make it runs perfectly in Python3, but not in Python2.

I also delete outdated APIs, and add a few new APIs.

I saved a few dictionarys into json files in utils foler which i used to use.

Hope you like it.

Baidu SEM API doc: https://cloud.baidu.com/doc/SEM/guanliAPI.html

Baidu SEM SDK说明

这是一个Python3 版本的Baidu SEM SDK。

原始的版本是用Python2编写的,同时也已经过期。

我把它改成了可以完美运行在Python3的版本,但没有适配Python2。

同时我删除了一些老旧的API,添加了一些新的API。

我保存了一些常用的字典在utils文件夹的json里。

希望你们喜欢。

Baidu SEM API 文档: https://cloud.baidu.com/doc/SEM/guanliAPI.html


使用说明/Instructions

使用前/Before use SDK:

pip install requests

or

pip install -r requirements.txt

填上api.properties中账户的信息/Add your account information in api.properties

代码示例/Reference code:

from sms_service_AccountService import *
service = sms_service_AccountService()
account_info_body = {
    'accountFields': [
        'balance',  # 账户余额
        'budgetType',  # 预算类型
        'budget',  # 账户预算
        'cost',  # 账户累积消费
        'regDomain',  # 账户注册域名
        'regionTarget',  # 推广地域列表
        'userStat',  # 账户状态
    ]
}
print(getAccountInfo(account_info_body)

baidu_sem_sdk's People

Contributors

wastee avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.