Host-food Scraper
Spider read host-food.ru in 1.2 s without a browser and returned 154 lines of clean markdown, including sections like "add www to domain name" and "redirect for hostfood.ru".
Индексный файл или файл-индекс — это тот файл, который открывается по умолчанию при обращении пользователя через веб к каталогу, а не к конкретному файлу. Например, ваш посетитель запросит адрес http://ваш_домен/price/, где price — название каталога. Индексный файл это тот файл, который будет показан пользователю при обращении к каталогу без указании имени конкретного файла в нем.Redirect [status] URL-from URL-toRedirect 307 / http://freebsd.org/Допустим, делаем переадресацию на перемещённый контент, при обращении к doc/index.html или index.html. Где doc - папка сайта которая находится в той же директории, что и сам файл **.htaccess**. Сам контент допустим перенесли на сайт microsoftRedirect 301 doc/index.html http://www.microsoft.com/rus/windows/default.mspxRedirect 301 index.html http://www.microsoft.com/rus/windows/default.mspxRedirect 303 http://www.microsoft.com/ http://www.freebsd.org/Чуть более сложный пример. Нам необходимо перенаправить всех посетителей пришедших на наш сайт без преффикса www, т.е. на host-food.ru. Ввиду массовой интернет-безграмотности, многие делают наоборот, но по уму, сайт должен находиться на субдомене www. Итак, перенаправляем всех кто пришёл по имени host-food.ru на правильное - www.host-food.ru:# add www to domain nameRewriteCond %{HTTP_HOST} ^host-food\.ruRewriteRule ^(.*)$ https://www.host-food.ru/$1 [R=permanent,L]# redirect for hostfood.ruRewriteCond %{HTTP_HOST} ^hostfood\.ruRewriteCond %{HTTP_HOST} www\.hostfood\.ruСитуация: пользователь обратился к каталогу http://www.ваш_домен.ru/price/. При таком запросе первым откроется и будет показан индексный файл. Если вы хотите переопределить индексный файл и сделать так, чтобы первым открывался не index.htm, а, например, файл myindex.php, то сделать это можно поместив в файл .htaccess, в соответствующем каталоге, следующую инструкцию:DirectoryIndex myindex.php The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on host-food.ru.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://host-food.ru");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { Spider } from "@spider-cloud/spider-client";
const spider = new Spider({ apiKey: process.env.SPIDER_API_KEY! });
const result = await spider.scrapeUrl("https://www.host-food.ru", {
return_format: "markdown",
});
console.log(result); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What host-food.ru costs to scrape.
The capture above cost $0.000079 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Food scrapers.
DoorDash Scraper
Extract restaurant listings, menu items, pricing, and delivery info from DoorDash.
Uber Eats Scraper
Extract restaurant listings, menu data, pricing, and delivery options from Uber Eats.
OpenTable Scraper
Extract restaurant listings, reservation availability, reviews, and menu data from OpenTable.
Start scraping host-food.ru.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.