The dataset viewer is not available for this subset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 257, in _generate_tables
pa_table = paj.read_json(
^^^^^^^^^^^^^^
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column(/posts/[]/location/location_id) changed from number to string in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 99, in _split_generators
pa_table = next(iter(self._generate_tables(**splits[0].gen_kwargs, allow_full_read=False)))[1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 271, in _generate_tables
batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
examples = [ujson_loads(line) for line in original_batch.splitlines()]
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 20, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Expected object or value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 66, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Persian-News-Agencies-on-Instagram-Dataset
This repository contains a dataset of scraped Instagram pages from Persian news/media accounts.
The dataset includes profile metadata and posts information such as captions, engagement metrics, media links, and timestamps.
Paper
Analysis of Persian News Agencies on Instagram, A Words Co-occurrence Graph-based Approach arxiv | IJWR | RG
Dataset Structure
The repository contains multiple JSON files, each representing a single Instagram account:
- bbcpersian.json
- fars_news.json
- khabar_fouri.json
Each file follows a similar structure:
Data Schema
Profile Information
Each JSON file includes basic profile metadata:
- `alias`: Display name of the account
- `username`: Instagram username
- `bio`: Account biography
- `prof_img`: Profile image URL
- `num_of_posts`: Total number of posts
- `followers.count`: Number of followers
- `following.count`: Number of accounts followed
- `bio_url`: External link in bio
- `isprivate`: Privacy status
Posts Structure
Each account contains a list of posts under:
"posts": []
Each post includes:
caption: Post text (Persian/English mixed content)
location: Location metadata (if available)
imgs: List of image URLs
preview_img: Thumbnail image
date: Post publication date (ISO format)
tags: Hashtags used in the post
likes.count: Number of likes
views: Number of views (if available)
url: Instagram post URL
comments.count: Number of comments
comments.list: Sample comments
mentions: Tagged users
Example Record:
{
"username": "bbcpersian",
"alias": "BBC NEWS فارسی",
"followers": {
"count": 6430797
},
"posts": [
{
"caption": "...",
"date": "2020-01-05T19:48:02.000Z",
"likes": {
"count": 0
},
"comments": {
"count": 33
},
"url": "https://www.instagram.com/p/..."
}
]
}
Use Cases
This dataset can be used for:
- Persian text analysis (NLP)
- Social media analytics
- Fake news / media comparison studies
- Engagement prediction models
- RAG / embedding-based search systems
- Temporal trend analysis of news content
Notes
- Data is scraped and may contain missing or noisy fields.
- Some posts may have empty captions or media.
- Engagement metrics (likes/views) may not be fully available for all entries.
- URLs are provided as stored at scraping time and may become unavailable over time.
Run Preprocessing
First install dependencies:
pip install -r requirements.txt
Then run preprocessing:
python preprocess.py
Output
Processed data will be saved in:
clean_dataset.json
Analysis of Persian News Agencies on Instagram, A Words Co-occurrence Graph-based Approach
Citation
If you find our work useful, please cite our paper:
@article{heydari2024analysis,
title={Analysis of Persian News Agencies on Instagram, A Words Co-occurrence Graph-based Approach},
author={Heydari, Mohammad and Teimourpour, Babak},
journal={arXiv preprint arXiv:2402.12272},
year={2024}
}
- Downloads last month
- 70