Skip to main content

IntelMapClient

PyPI GitHub

一个用于访问 intel.ingress.com 的 API 客户端

Feature

  • 使用httpx进行异步请求
  • 支持使用代理

Requirement

  • Python >= 3.7
  • httpx[socks] >= 0.22.0
  • httpx-socks[asyncio] >= 0.7.3

Installation

pip install intel-map-client

Usage

下面是获取指定区间内全部 Portals 的简单示例

import asyncio

from IntelMapClient import AsyncClient, AsyncAPI
from IntelMapClient.types import MapTiles

cookies = "<cookies>"  # Put your cookies here

client = AsyncClient()
api = AsyncAPI(client)
client.set_cookies(cookies)  # Set Cookies
client.set_proxy(proxy_url="socks5://127.0.0.1:7890")  # Set proxy if you need

async def main():
    lat, lng = 23.105252, 113.240577
    map_tiles = MapTiles.from_square(lat, lng, 7000, zoom=15)  # Build MapTiles
    async with client:
        await client.authorize()
        tile_set = await api.GetEntitiesByMapTiles(map_tiles)
        print(list(tile_set.portals()))  # Portals List
  
if __name__ == '__main__':
    asyncio.run(main())

更多用法详情可以等待 API 文档更新

API List

IntelMap Basic API

  • getArtifactPortals
  • getGameScore
  • getEntities
  • getPortalDetails
  • getPlexts
  • sendPlext
  • getRegionScoreDetails
  • redeemReward
  • getHasActiveSubscription
  • getTopMissionsInBounds
  • getMissionDetails
  • getTopMissionsForPortal
  • getInventory
  • sendInviteEmails
  • wipeAccount

High-level API

  • SearchPortalByLatLng - 通过经纬度搜索最近的 portal
  • GetEntitiesByMapTiles - 下载 MapTiles 范围内的 GameEntities

Roadmap

该版本是原来分支的重构,更多更新将在以后版本发布

License

MIT License

Metadata

Release files for intel-map-client 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intel-map-client 0.2.3
File Size Uploaded
intel-map-client-0.2.3.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for intel-map-client 0.2.3
File Interpreter ABI Platform
intel_map_client-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / intel-map-client-0.2.3.tar.gz

Download URL intel-map-client-0.2.3.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce28bd4b0557b4bfcaa2cc9766572acd54e5faa923010faff77fe89bb1fac4cd
BLAKE2b-256 checksum
How to use checksums
661f53034844661325f5f81f225c697bb56d075a7e4406edb7e33fc1e83b4fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / intel_map_client-0.2.3-py3-none-any.whl

Download URL intel_map_client-0.2.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7f10f07edde58c053c725e3d22e044e25c82289824b310adf90f784df605631
BLAKE2b-256 checksum
How to use checksums
23efa444ea1c549c459a8a0703e5a03c1119b9ae085dfa0d23974ee472b29312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page