Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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.
Requires Python 3.12+.
.. code-block:: bash
$ pip install fipiran
.. code-block:: python
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:
Use an asyncio-aware REPL, like python -m asyncio
, to run the code samples below.
Example 1:
.. code-block:: python
>>> 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.
.. code-block:: python
>>> 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.
.. _open an issue: https://github.com/5j9/fipiran/issues
FAQs
a library to retrieve data from fipiran.ir website
We found that fipiran demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.