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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astana_hub-0.0.2.tar.gz.
File metadata
- Download URL: astana_hub-0.0.2.tar.gz
- Upload date:
- Size: 210.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1217c5262c7b8623ec2eacf88d25365fb8cd9ca515f901b4567a538de61d7bf8
|
|
| MD5 |
9df92c0d48f2228c825257b88a51075d
|
|
| BLAKE2b-256 |
ad480ef920b73739f1139fe4cce50b04c7da4fe77a96020b139f78a9b3c2cb62
|
File details
Details for the file astana_hub-0.0.2-py3-none-any.whl.
File metadata
- Download URL: astana_hub-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
886155180a0a4a04787337a28b5e9afbf3c2e94f5713845c5ff3fa2b7b3370f3
|
|
| MD5 |
4462ba416ba035c5bcb99a906c4d0929
|
|
| BLAKE2b-256 |
56a16dd9466d9cdb242c64077fb72d3f158b171e6e402da7494c028a43e50a74
|