Skip to main content

a library to retrieve data from fipiran.ir website

Project description

An async python library to fetch data from https://www.fipiran.com/ .

Note: This is package is incomplete and still in initial development phase. The API may change without deprecation.

Installation

Requires Python 3.12+.

$ pip install fipiran

Usage

import asyncio
from fipiran.symbols import Symbol

async def main():
    company_info = await Symbol('فملی').company_info()
    print(company_info)

asyncio.run(main())

There are four modules:

  • data_service

  • funds

  • symbols

  • codal

Use an asyncio-aware REPL, like python -m asyncio, to run the code samples below.

Example 1:

>>> from fipiran.symbols import Symbol
>>> await Symbol('فملی').company_info()
{'نام نماد': 'فملی',
 'نام شرکت': 'ملی صنایع مس ایران',
 'مدیر عامل': 'اردشیر سعدمحمدی',
 'تلفن': '021-88724410',
 'فکس': '021-88729014',
 'آدرس': 'مجتمع مس سرچشمه و مجتمع مس میدوک در استان کرمان و مجتمع مس سونگون در تبریز شهرستان ورزقان واقع شده اند.',
 'وب سایت': 'www.nicico.com',
 'ایمیل': 'office@nicico.com',
 'سال مالی': '12/29',
 'موضوع فعالیت': 'اکتشافات،  استخراج و  بهره برداری از معادن  مس  ایران'}

Example 2:

Getting list of funds as a pandas DataFrame object.

>>> from fipiran.funds import funds
>>> await funds()
     regNo                                  name  ...      isCompleted  fundWatch
0    11726                        جسورانه فیروزه  ...         True       None
1    11603              جسورانه فناوری بازنشستگی  ...         True       None
2    11780                    گروه زعفران سحرخیز  ...         True       None
3    11772                      طلای سرخ نو ویرا  ...         True       None
4    11480                 جسورانه یکم آرمان آتی  ...         True       None
..     ...                                   ...  ...          ...        ...
308  11916                    با درآمد ثابت آریا  ...        False       None
309  11922                      آوای تاراز زاگرس  ...        False       None
310  11927                    صندوق در صندوق صنم  ...        False       None
311  11931  اختصاصی بازارگردانی توسعه سهام عدالت  ...        False       None
312  11933       اختصاصی بازارگردانی تثبیت پاداش  ...        False       None
[313 rows x 37 columns]

There are many other functions and methods. Please explore the code-base for more info.

If you are interested in other information that are available on fipiran.com but this library has no API for, please open an issue for them on github.

See also

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fipiran-0.22.3.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

fipiran-0.22.3-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file fipiran-0.22.3.tar.gz.

File metadata

  • Download URL: fipiran-0.22.3.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for fipiran-0.22.3.tar.gz
Algorithm Hash digest
SHA256 68434f0c936bf2487a39a4a483bd28801785678dba8e49a66822ed77741de7b1
MD5 37a9ac2c35a8b8d256bbf31f17ed13e7
BLAKE2b-256 d82a7617c45646b5c2778c47e18757928c0a07d78e1e340e5bf4220b1084825a

See more details on using hashes here.

File details

Details for the file fipiran-0.22.3-py3-none-any.whl.

File metadata

  • Download URL: fipiran-0.22.3-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for fipiran-0.22.3-py3-none-any.whl
Algorithm Hash digest
SHA256 95fdb3f4af47b18bc68894454a10beca3fa8549ca237eee9ec05a93271c23244
MD5 aca7d49e276804c2240c0478b78142a1
BLAKE2b-256 7ed24395a01b717293f6ed861d18c3d4f9ce226a20758287aa6362dcbe23c4ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page