# Onedio Scraper (`epctex/onedio-scraper`) Actor

- **URL**: https://apify.com/epctex/onedio-scraper.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Categories:** News, Social media
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.90 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Actor - Onedio Scraper

Onedio is a popular digital media platform based in Turkey that offers a wide range of content, including news, entertainment, lifestyle, technology, and more. It combines editorial articles, user-generated content, quizzes, lists, and videos to engage a diverse audience. Onedio is known for its vibrant and interactive content, often tailored to a young, internet-savvy demographic. The platform aims to provide entertaining and informative content in a visually appealing format, leveraging social media to reach a broader audience.

- **Flexible Keyword Search**: Seamlessly search for any keyword and retrieve articles. Pinpoint the information that you require by simply searching the keyword.

- **User-Centric Scraping**: Dive deep into users' contributions by scraping articles made by specific individuals, gaining insights into their perspectives and contributions.

- **Category and User Articles Scraping**: Fetch content from specific profiles, or gather articles related to specific categories right away!.

- **Retrieve Real Comment Information**: Not just retrieving the articles, but also gather the comment information that has been generated by the community. Usernames, view counts, messages and more. All at your fingertips.

### Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex-support/onedio-scraper/issues).

### Input Parameters

The input of this scraper should be JSON containing the list of pages on Onedio that should be visited. Required fields are:

- `startUrls`: (Optional) (Array) List of Onedio URLs. You should only provide a category, search, user profile, or article URLs.

- `search`: (Optional) (String) Keyword that you want to search on Onedio.

- `endPage`: (Optional) (Number) Final number of page that you want to scrape. The default is `Infinite`. This applies to all `search` requests and `startUrls` individually.

- `endPageForComments`: (Optional) (Number) Final number of page that you want to scrape from comments. The default is `Infinite`. This applies to all `article` requests individually.

- `maxItems`: (Optional) (Number) You can limit scraped items. This should be useful when you search through the big lists or search results.

- `proxy`: (Required) (Proxy Object) Proxy configuration.

- `customMapFunction`: (Optional) (String) Function that takes each object's handle as an argument and returns the object with executing the function.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Tip

When you want to scrape over a specific list URL, just copy and paste the link as one of the **startUrl**.

If you would like to scrape only the first page of a list then put the link for the page and have the `endPage` as 1.

With the last approach that is explained above you can also fetch any interval of pages. If you provide the 5th page of a list and define the `endPage` parameter as 6 then you'll have the 5th and 6th pages only.

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape as many items as possible. Therefore, it forefronts all the detailed requests. If the actor doesn't block very often it'll scrape 100 listings in 1 minutes with ~0.03-0.04 compute units.

#### Onedio Scraper Input example

```json
{
    "search": "mavi ceket",
    "startUrls": [
        "https://onedio.com//haber/su-aslinda-seffafken-okyanus-ve-denizler-neden-mavi-renktedir-1165941",
        "https://onedio.com/ara/haber/ceket",
        "https://onedio.com/profil/cometasincuerda",
        "https://onedio.com/yemek/hamur-isi/pizza/2"
    ],
    "endPage": 3,
    "maxItems": 100,
    "includeComments": false,
    "endPageForComments": 30,
    "proxy": {
        "useApifyProxy": true
    }
}
```

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified.

When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

### Onedio Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this Onedio actor.

### Scraped Onedio Properties

The structure of each article in Onedio looks like this:

#### Article Detail

```json
{
  "type": "article",
  "url": "https://onedio.com//haber/her-kosesine-gizlenmis-detaylarda-farkli-bir-atasozunun-bulundugu-muhtesem-tablo-mavi-pelerin-1007094",
  "name": "Her Köşesine Gizlenmiş Detaylarda Farklı Bir Atasözünün Bulunduğu Muhteşem Tablo: Mavi Pelerin",
  "id": "6159bca8be42440d22c5ba48",
  "tags": [
    "~experimental-videogifs"
  ],
  "stats": {
    "views": 74047,
    "shares": 459,
    "comments": 4
  },
  "originalTitle": "Her Köşesine Gizlenmiş Detaylarda Farklı Bir Atasözünün Bulunduğu Muhteşem Tablo: Mavi Pelerin",
  "legacyId": 1007094,
  "keywords": [
    "koses"
  ],
  "image": {
    "format": "jpg",
    "height": 628,
    "width": 1200,
    "thumbnail": null,
    "url": "https://img-s1.onedio.com/id-6159be6e8a5bbc071672bb03/rev-0/w-1200/h-628/f-jpg/s-f070195baabcade6efc67f4876d779bae3e1d616.jpg"
  },
  "flags": {
    "isDeleted": false,
    "isDraft": false,
    "isHidden": false,
    "isTest": false,
    "isVideo": false,
    "noindex": false,
    "showAds": true,
    "showComments": true,
    "showReactions": true,
    "showSharesCount": true,
    "showVideoPageDesign": false,
    "showViewCount": true
  },
  "description": "Yüzyıllardır tartışmalara konu olan, gizemleri hala çözülemeyen binlerce sanat eseri artık internet sayesinde tek tıkla karşımıza geliyor. Biz de bizzat gezemediğimiz müzelerden değerli bir tabloyu incelemeye aldık: Bruegel'in 1559 tarihli 'Mavi Pelerin' eseri. 'Felemenk Atasözleri' olarak da bilinen tablonun en ince detaylarını sizler için inceledik. Buyrun içeriğe! 👇",
  "createdAt": "03.10.2021 17:22",
  "modifiedAt": "10.10.2021 17:03",
  "publishedAt": "10.10.2021 17:03",
  "updatedAt": "10.10.2021 17:03",
  "categories": [
    {
      "_id": "62390d5f4c037f8216162711",
      "name": "Genel Kültür",
      "description": "Görsel sanatlar, tiyatro, sinema, sergi ve daha nice genel kültür haberleri Onedio'da. Türkiye ve dünya sanat haberleri ile ilgili gelişmeler için hemen tıkla!",
      "color": "#053F5C",
      "icons": {
        "iconCode": "cafe",
        "png": "https://static.onedio.com/icons/category/png/genel-kultur-v2.png"
      },
      "route": "/genel-kultur"
    }
  ],
  "badges": [
    {
      "_id": "562e40f6df878a1246186f03",
      "name": "Helal olsun!",
      "description": "Helal olsun! ile ilgili tüm haberler, içerikler, galeriler, testler ve videolar Onedio’da. Helal olsun! ile ilgili son dakika haberleri ve gelişmelerini, yeni içerikleri de bu sayfa üzerinden takip edebilirsiniz.",
      "metaDescription": "Helal olsun! hakkında son dakika haberleri Onedio’da. En çok konuşulan Helal olsun! haberlerini keşfetmek için hemen tıkla!",
      "isBadge": true,
      "icons": {
        "svg": "https://static.onedio.com/icons/badge/svg/clap.svg",
        "png": "https://static.onedio.com/icons/badge/png/clap.png"
      },
      "route": "/helal-olsun-haberleri"
    }
  ],
  "author": [
    {
      "avatar": {
        "format": "jpg",
        "height": 1188,
        "width": 1200,
        "thumbnail": null,
        "url": "https://img-s3.onedio.com/id-641f62a42b912a7a30ab8a68/rev-0/w-1200/h-1188/f-jpg/s-a9790c6120d2affb81d6bcad07f977dc1209aa07.jpg"
      },
      "city": "Ankara",
      "country": "TR",
      "route": "/profil/elalalolof",
      "gender": "female",
      "name": "Elif",
      "title": "Onedio Üyesi",
      "username": "elalalolof",
      "id": "6055d6e149830c0326ead5c1",
      "flags": [
        "mail.surpress.newsletter"
      ]
    }
  ],
  "entries": [
    {
      "_id": "6159bca8be42440d22c5ba23",
      "mode": "text",
      "title": null,
      "text": {
        "plain": "Yüzyıllardır tartışmalara konu olan, gizemleri hala çözülemeyen binlerce sanat eseri artık internet sayesinde tek tıkla karşımıza geliyor. Biz de bizzat gezemediğimiz müzelerden değerli bir tabloyu incelemeye aldık: Bruegel'in 1559 tarihli 'Mavi Pelerin' eseri. 'Felemenk Atasözleri' olarak da bilinen tablonun en ince detaylarını sizler için inceledik. Buyrun içeriğe! 👇",
        "html": "<p>Yüzyıllardır tartışmalara konu olan, gizemleri hala çözülemeyen binlerce sanat eseri artık internet sayesinde tek tıkla karşımıza geliyor. Biz de bizzat gezemediğimiz müzelerden değerli bir tabloyu incelemeye aldık: Bruegel'in 1559 tarihli 'Mavi Pelerin' eseri. 'Felemenk Atasözleri' olarak da bilinen tablonun en ince detaylarını sizler için inceledik. Buyrun içeriğe! 👇</p>"
      },
      "image": null,
      "metadata": {
        "fittoscreen": true,
        "unordered": true,
        "hideIn": {
          "desktop": false,
          "mobile": false
        }
      },
      "internaldata": {},
      "urls": {
        "image": null,
        "source": "https://artsandculture.google.com/asset/the-dutch-proverbs-pieter-bruegel-the-elder/WwG8mD89xbELbQ"
      }
    },
  ]
}
```

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with. It should be Search, Category, User Profile or Article URL.

## `search` (type: `string`):

The keyword that you want to search on Onedio

## `maxItems` (type: `integer`):

Maximum number of listing items that you want as output. Default is all

## `endPage` (type: `integer`):

The page number that you want to end with. By default there is no end page. This is applies to all search request and startUrls individually.

## `endPageForComments` (type: `integer`):

The page number that you want to end with. By default there is no end page. This is applies to all comment listing requests individually.

## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "startUrls": [
    "https://onedio.com//haber/su-aslinda-seffafken-okyanus-ve-denizler-neden-mavi-renktedir-1165941",
    "https://onedio.com/ara/haber/ceket",
    "https://onedio.com/profil/cometasincuerda",
    "https://onedio.com/yemek/hamur-isi/pizza/2"
  ],
  "search": "mavi ceket",
  "maxItems": 20,
  "endPage": 1,
  "endPageForComments": 1,
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://onedio.com//haber/su-aslinda-seffafken-okyanus-ve-denizler-neden-mavi-renktedir-1165941",
        "https://onedio.com/ara/haber/ceket",
        "https://onedio.com/profil/cometasincuerda",
        "https://onedio.com/yemek/hamur-isi/pizza/2"
    ],
    "search": "mavi ceket",
    "maxItems": 20,
    "endPage": 1,
    "endPageForComments": 1,
    "customMapFunction": (object) => { return {...object} },
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/onedio-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [
        "https://onedio.com//haber/su-aslinda-seffafken-okyanus-ve-denizler-neden-mavi-renktedir-1165941",
        "https://onedio.com/ara/haber/ceket",
        "https://onedio.com/profil/cometasincuerda",
        "https://onedio.com/yemek/hamur-isi/pizza/2",
    ],
    "search": "mavi ceket",
    "maxItems": 20,
    "endPage": 1,
    "endPageForComments": 1,
    "customMapFunction": "(object) => { return {...object} }",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/onedio-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://onedio.com//haber/su-aslinda-seffafken-okyanus-ve-denizler-neden-mavi-renktedir-1165941",
    "https://onedio.com/ara/haber/ceket",
    "https://onedio.com/profil/cometasincuerda",
    "https://onedio.com/yemek/hamur-isi/pizza/2"
  ],
  "search": "mavi ceket",
  "maxItems": 20,
  "endPage": 1,
  "endPageForComments": 1,
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call epctex/onedio-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epctex/onedio-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/njho2N83DVUrETvJT/builds/dwPEvMJTrDLlpKRvj/openapi.json
