Get Networking cards from https://astanahub.com/ with ease!
Project description
Installation
pip install astana-hub
Features
- Get company list from https://astanahub.com/account/company/
- Optional filter by tags: ('tag_startup', 'tag_it_company', 'tag_corp_partner', 'tag_techpark', 'tag_ts_member')
- Get user list from https://astanahub.com/account/company/
- Optional filter by tags: ('tag_intern', 'tag_it_specialist', 'tag_investor', 'tag_international_agent')
- Async by aiohttp
- HTML parsing with bs4+lxml
Usage
import asyncio
import astana_hub
async def main():
async with astana_hub.Parser.create() as p:
company_list_page1 = await p.get_company_page()
print(company_list_page1)
user_list_page1 = await p.get_user_page()
print(user_list_page1)
all_users = await p.parse_all(page_type='user')
print(all_users)
all_startups = await p.parse_all(page_type='company', tag='tag_startup')
print(all_startups)
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astana_hub-0.0.2.tar.gz
(210.2 kB
view hashes)
Built Distribution
Close
Hashes for astana_hub-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 886155180a0a4a04787337a28b5e9afbf3c2e94f5713845c5ff3fa2b7b3370f3 |
|
MD5 | 4462ba416ba035c5bcb99a906c4d0929 |
|
BLAKE2b-256 | 56a16dd9466d9cdb242c64077fb72d3f158b171e6e402da7494c028a43e50a74 |