PHPackages                             pavolbiely/bazos-crawler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pavolbiely/bazos-crawler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pavolbiely/bazos-crawler
========================

PHP Crawler for downloading ads and categories from bazos.sk, bazos.cz or bazos.at.

4151[1 PRs](https://github.com/pavolbiely/bazos-crawler/pulls)PHP

Since May 15Pushed 1y ago2 watchersCompare

[ Source](https://github.com/pavolbiely/bazos-crawler)[ Packagist](https://packagist.org/packages/pavolbiely/bazos-crawler)[ RSS](/packages/pavolbiely-bazos-crawler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bazos - PHP Crawler
===================

[](#bazos---php-crawler)

[![Build Status](https://camo.githubusercontent.com/48d044a087450ff1968534cdd4b024acf8863e37bcc92609ec081155288392f1/68747470733a2f2f7472617669732d63692e6f72672f7061766f6c6269656c792f62617a6f732d637261776c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pavolbiely/bazos-crawler)[![Coverage Status](https://camo.githubusercontent.com/514569c7d8d151bca9d52ef2a6f598e103057f442d7ebf105ad08cb9777c3e82/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7061766f6c6269656c792f62617a6f732d637261776c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pavolbiely/bazos-crawler?branch=master)

PHP Crawler for downloading ads and categories from bazos.sk, bazos.cz or bazos.at.

Usage
-----

[](#usage)

Use composer to install this package.

### Download ads from single category

[](#download-ads-from-single-category)

```
$crawler = new Bazos\Crawler();

$items = $crawler->crawlAds('https://auto.bazos.sk/', 5); // 5 means number of pages to parse, default is 1

foreach ($items as $item) {
    echo $item->getTitle() . "\n";
}
```

### Download ads from all categories

[](#download-ads-from-all-categories)

```
$crawler = new Bazos\Crawler();

$categories = $crawler->crawlCategories($crawler::URL_SK);

foreach ($categories as $category) {
	$items = $crawler->crawlAds($category->getLink(), 5); // 5 means number of pages to parse, default is 1

	foreach ($items as $item) {
	    echo $item->getTitle() . "\n";
	}
}
```

How to run tests?
-----------------

[](#how-to-run-tests)

Tests are build with [Nette Tester](https://tester.nette.org/). You can run it like this:

```
tester.bat -c php.ini-win --coverage coverage.html --coverage-src ../src
```

Minimum requirements
--------------------

[](#minimum-requirements)

- PHP 7.1+
- ext-curl
- ext-tidy

Disclaimer
----------

[](#disclaimer)

Please do not abuse the Bazos portal. I've developed this crawler just for tracking bike ads where I was looking for the one someone stole from me.

License
-------

[](#license)

MIT License (c) Pavol Biely

Read the provided LICENSE file for details.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/253db396889b232a20df30f31398208f9abcf2ea8db0d9b3e086a76af8830895?d=identicon)[pavolbiely](/maintainers/pavolbiely)

---

Top Contributors

[![elcreator](https://avatars.githubusercontent.com/u/974975?v=4)](https://github.com/elcreator "elcreator (3 commits)")[![pavolbiely](https://avatars.githubusercontent.com/u/115791?v=4)](https://github.com/pavolbiely "pavolbiely (2 commits)")

### Embed Badge

![Health badge](/badges/pavolbiely-bazos-crawler/health.svg)

```
[![Health](https://phpackages.com/badges/pavolbiely-bazos-crawler/health.svg)](https://phpackages.com/packages/pavolbiely-bazos-crawler)
```

###  Alternatives

[tigitz/php-spellchecker

Provides an easy way to spellcheck multiple text source by many spellcheckers, directly from PHP

309498.4k1](/packages/tigitz-php-spellchecker)[shweshi/opengraph

A Laravel package to fetch website Open Graph metadata.

168736.5k1](/packages/shweshi-opengraph)[hashandsalt/kirby3-schema

Kirby 3 - Schema

171.7k1](/packages/hashandsalt-kirby3-schema)[wbrowar/craft-grid

A field that lets you content manage CSS Grid in Craft CMS.

171.1k](/packages/wbrowar-craft-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
