Исправить file_get_contents('')
4 USDНе работает функция получения данных: file_get_contents('')
Также: curl
Получаем данные c allegro.pl, в категориях товары есть, карточка товара пустая.
Данные идут через парсер.
_____________________________
Возможно не описал каких то моментов потому что сам их не очень хорошо понимаю в любом случае нюансы обсудим. Пишите предложения. Оперативно интересует цена вопроса, хотя бы примерная.
Превышение количество запросов, код 429
<?php
if (isset($_GET['product_id'])) {
$product_id = $_GET['product_id'];
echo file_get_contents('http://allegro.pl/show_item.php?item='.$product_id);
} else {
echo 'empty product_id';
}
function curlA1($url) {
$url = str_replace("https", "http", $url);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIEJAR, 'cook.txt');
curl_setopt($curl, CURLOPT_COOKIEFILE, 'cook.txt');
curl_setopt($curl, CURLOPT_USERAGENT, "Opera/10.00 (Windows NT 5.1; U; ru) Presto/2.2.0");
curl_setopt($curl, CURLOPT_FAILONERROR, 1);
curl_setopt($curl, CURLOPT_REFERER, 'http://allegro.pl/');
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); // не проверять SSL сертификат
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); // не проверять Host SSL сертификата
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); // разрешаем редиректы
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
return curl_exec($curl);
curl_close($curl);
}
function file_get_contentsA1($url) {
try {
$data = file_get_contents($url);
return $data;
} catch (Exception $exc) { }
}
-
1358 76 6 3 если у вас впс, могу поднять тор и через него будете получать страницы, если будет ошибка то генерируете новый ИП и парсите дальше
-
496 36 2 1 Добрый день. В коммерческой разработке с 2015 года. За этот период реализовал множество задач различной степени сложности от самых простых до самых сложных. Смогу выполнить ваш проект. Более детально в ЛС.
-
2593 427 9 1 Интересуют подробности
=- =-= -= -= =- =- =- =- =- = -=- =- =- = -= -= -=- = - =-= - =- =- =- =- = -= -= -
-
6501 229 4 7 Добрый день. Посмотрю и исправлю сейчас. Большой опыт работы с curl. Я на связи.
-
а) низкий бюджет б) подробности, что пишет в сообщении об ошибке
-
Превышение количество запросов, код 429
https://www.zpl-ua.com/product.php?product_id=6604307557
<?php
if (isset($_GET['product_id'])) {
$product_id = $_GET['product_id'];
echo file_get_contents('http://allegro.pl/show_item.php?item='.$product_id);
} else {
echo 'empty product_id';
}
function curlA1($url) {
$url = str_replace("https", "http", $url);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIEJAR, 'cook.txt');
curl_setopt($curl, CURLOPT_COOKIEFILE, 'cook.txt');
curl_setopt($curl, CURLOPT_USERAGENT, "Opera/10.00 (Windows NT 5.1; U; ru) Presto/2.2.0");
curl_setopt($curl, CURLOPT_FAILONERROR, 1);
curl_setopt($curl, CURLOPT_REFERER, 'http://allegro.pl/');
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); // не проверять SSL сертификат
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); // не проверять Host SSL сертификата
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); // разрешаем редиректы
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
return curl_exec($curl);
curl_close($curl);
}
function file_get_contentsA1($url) {
try {
$data = file_get_contents($url);
return $data;
} catch (Exception $exc) { }
}
-
Программист с которым я работаю, не может найти решение.
-
Current freelance projects in the category PHP
Improvement of the website https://koleso-center.com/ on OpenCart
223 USD
Add categories to the online store websiteUsed disksSpare tiresFastenersData is taken from the 1C database.A few more questions Type of performer: single Backend developer (OpenCart/PHP) at the Middle levelThe modifications must meet all requirementsSEO + AI promotion AI… PHP ∙ 3 hours 58 minutes back ∙ 27 proposals |
Module for OpenCart: mass creation of products from folders with imagesDevelopment of a mass product creation module for OpenCart (ocStore 3.x) A backend module for OpenCart / ocStore 3.x needs to be developed that automatically creates products from a pre-prepared folder structure with images.Main functionality: mass creation of products from… Content Management Systems, PHP ∙ 1 day 10 hours back ∙ 46 proposals |
Looking for a Bitrix24 specialist / CRM integrator to set up automation.Our company works with CRM Bitrix24. We need a specialist who can set up automatic addition of phone numbers to leads/orders in two formats. Automation must be correctly configured for two countries: the Republic of Moldova and Romania. Task: When creating a lead or order in… PHP, Web Programming ∙ 4 days 12 hours back ∙ 24 proposals |
Website optimizationOptimization of the website jdgreta.co.uk on Shopify. SEO audit attached to the project. Main tasks - - Fix all meta data - Complete the technical specifications for the programmer (since this project combines tasks for both the programmer and SEO, if you are not a company -… HTML & CSS, PHP ∙ 5 days 9 hours back ∙ 33 proposals |
Horoshop SpecialistNeed a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different… PHP, Website Maintenance ∙ 6 days 11 hours back ∙ 21 proposals |