|
...
|
...
|
@@ -41,28 +41,60 @@ class HtmlCustomCollect extends Command |
|
|
|
{
|
|
|
|
ini_set('memory_limit', '512M');
|
|
|
|
|
|
|
|
$project_id = 517;
|
|
|
|
$project_site = 'v6-1gee9.globalso.site';
|
|
|
|
// $project_id = 437;
|
|
|
|
// $project_site = 'v6-1500k.globalso.site';
|
|
|
|
// $pages = [
|
|
|
|
// 'https://www.tourletent.com/project/b300-glamping-tent-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/lotus-bell-tent-in-australia/',
|
|
|
|
// 'https://www.tourletent.com/project/luxury-resort-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/canvas-safari-tent-inthailand/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-for-m8-in-mexcio/',
|
|
|
|
// 'https://www.tourletent.com/project/9m-pvc-dome-tent-in-canada/',
|
|
|
|
// 'https://www.tourletent.com/project/c900-hotel-tent-in-korea/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-in-guizhou/',
|
|
|
|
// 'https://www.tourletent.com/project/dome-tent-in-austin/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-in-italy/',
|
|
|
|
// 'https://www.tourletent.com/project/glass-igloo-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/tree-house-in-sichuan/'
|
|
|
|
// ];
|
|
|
|
|
|
|
|
// $project_id = 517;
|
|
|
|
// $project_site = 'v6-1gee9.globalso.site';
|
|
|
|
// $pages = [
|
|
|
|
// 'https://www.beifa.group/help/send-results/',
|
|
|
|
// 'https://www.beifa.group/help/terms-of-use/',
|
|
|
|
// 'https://www.beifa.group/help/position-3/',
|
|
|
|
// 'https://www.beifa.group/help/position-2/',
|
|
|
|
// 'https://www.beifa.group/help/position-1/',
|
|
|
|
// 'https://www.beifa.group/help/social-media/',
|
|
|
|
// 'https://www.beifa.group/help/globle-exibition-2/',
|
|
|
|
// 'https://www.beifa.group/help/job/',
|
|
|
|
// 'https://www.beifa.group/help/vr/',
|
|
|
|
// 'https://www.beifa.group/help/on-live-video/',
|
|
|
|
// 'https://www.beifa.group/help/honor/',
|
|
|
|
// 'https://www.beifa.group/help/certification/',
|
|
|
|
// 'https://www.beifa.group/help/quanity-control/',
|
|
|
|
// 'https://www.beifa.group/help/testing-center/',
|
|
|
|
// 'https://www.beifa.group/help/rd/',
|
|
|
|
// 'https://www.beifa.group/help/design-trend/',
|
|
|
|
// 'https://www.beifa.group/help/partner/',
|
|
|
|
// 'https://www.beifa.group/help/social-responsibility/',
|
|
|
|
// 'https://www.beifa.group/help/contact/',
|
|
|
|
// ];
|
|
|
|
|
|
|
|
$project_id = 546;
|
|
|
|
$project_site = 'v6-kx260.globalso.site';
|
|
|
|
$pages = [
|
|
|
|
'https://www.beifa.group/help/send-results/',
|
|
|
|
'https://www.beifa.group/help/terms-of-use/',
|
|
|
|
'https://www.beifa.group/help/position-3/',
|
|
|
|
'https://www.beifa.group/help/position-2/',
|
|
|
|
'https://www.beifa.group/help/position-1/',
|
|
|
|
'https://www.beifa.group/help/social-media/',
|
|
|
|
'https://www.beifa.group/help/globle-exibition-2/',
|
|
|
|
'https://www.beifa.group/help/job/',
|
|
|
|
'https://www.beifa.group/help/vr/',
|
|
|
|
'https://www.beifa.group/help/on-live-video/',
|
|
|
|
'https://www.beifa.group/help/honor/',
|
|
|
|
'https://www.beifa.group/help/certification/',
|
|
|
|
'https://www.beifa.group/help/quanity-control/',
|
|
|
|
'https://www.beifa.group/help/testing-center/',
|
|
|
|
'https://www.beifa.group/help/rd/',
|
|
|
|
'https://www.beifa.group/help/design-trend/',
|
|
|
|
'https://www.beifa.group/help/partner/',
|
|
|
|
'https://www.beifa.group/help/social-responsibility/',
|
|
|
|
'https://www.beifa.group/help/contact/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/achieving-transformative-improvements-for-polyurethane-exterior-insulation-panels-in-france/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/grechos-fiberglass-rebar-revolutionizing-canadian-construction-projects-with-unparalleled-quality/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/customer-from-the-uk-purchases-fiberglass-coated-mats-for-plasterboards-from-grecho/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/supplying-carbon-fiber-to-australian-surfboard-manufacturer/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/300g-chopped-strand-mat-for-composite-slates-shipped-to-malaysia/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/fiberglass-roving-for-pipewater-tank-shipped-to-russia/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/fiberglass-fleece-for-acoustic-ceiling-shipped-to-russia/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/600g-fiberglass-aluminum-foil-cloth-shipped-to-australia-for-pipe-heat-shielding/',
|
|
|
|
'https://www.grechofiberglass.com/success_stories/shipping-our-first-truck-of-fiberglass-tissue-in-2022/',
|
|
|
|
];
|
|
|
|
|
|
|
|
// $project_id = 586;
|
|
...
|
...
|
@@ -78,6 +110,36 @@ class HtmlCustomCollect extends Command |
|
|
|
// 'https://www.citymax-group.com/case/field-experiment-crop-lettuce/',
|
|
|
|
// ];
|
|
|
|
|
|
|
|
// $project_id = 626;
|
|
|
|
// $project_site = 'v6-m342g.globalso.site';
|
|
|
|
// $pages = [
|
|
|
|
// 'https://www.lecusostreetlight.com/project_catalog/project/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project_catalog/project/page/2/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/560pcs-250w-smart-led-street-light-in-manila-city-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/3200pcs-8m-150w-solar-street-light-in-cebu-philippines/',
|
|
|
|
// 'https://lecusostreetlight.com/project/170pcs-100w-split-lithium-battery-solar-street-light-in-tanzania/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/250pcs-40w-sl-series-solar-street-light-in-kuwait/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/272pcs-8m-80w-solar-street-light-in-tanzania/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/185pcs-10m-120w-highway-solar-street-light-in-jordan/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/270pcs-9m-patterned-decorative-light-pole-with-150w-led-cobra-light-in-cambodia/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/48pcs-5m-24w-decorative-aluminium-pole-in-dubai-uae/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/105pcs-9m-100w-led-street-light-in-sri-lanka/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/45pcs-6m-hot-dip-galvanized-double-arm-street-light-pole-in-dubai-uae/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/356pcs-8m-100w-solar-street-light-in-ethiopia/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/52pcs-6m-30w-solar-led-street-light-with-gel-battery-in-poland/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/225pcs-6m-80w-solar-street-light-in-vietnam/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/450pcs-7m-60w-double-arm-solar-light-in-nigeria/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/100pcs-6m-50w-led-street-light-in-maldives/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/202pcs-6m-40w-3000k-solar-street-light-in-manila-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/245pcs-120w-smart-led-street-light-in-bangkok-thailand/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/170pcs-7m-50w-all-in-one-solar-light-in-davao-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/80pcs-9m-150w-led-street-light-in-iraq/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/252pcs-6m-40w-separate-solar-street-light-with-lithium-battery-in-thailand/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/198pcs-8m-80w-zc-series-all-in-two-solar-light-in-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/5m-30w-morden-led-garden-light-in-russian/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/135pcs-all-in-one-solar-street-light-in-uae-dubai-park/'
|
|
|
|
// ];
|
|
|
|
|
|
|
|
// $project_id = 633;
|
|
|
|
// $project_site = 'v6-ke5nz.globalso.site';
|
|
|
|
// $pages = [
|
|
...
|
...
|
@@ -117,53 +179,6 @@ class HtmlCustomCollect extends Command |
|
|
|
// 'https://www.mach-sales.com/case/cooperation-win-win-and-starting-anew-sumec-creates-a-new-sample-of-strong-enterprise-cooperation/'
|
|
|
|
// ];
|
|
|
|
|
|
|
|
// $project_id = 437;
|
|
|
|
// $project_site = 'v6-1500k.globalso.site';
|
|
|
|
// $pages = [
|
|
|
|
// 'https://www.tourletent.com/project/b300-glamping-tent-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/lotus-bell-tent-in-australia/',
|
|
|
|
// 'https://www.tourletent.com/project/luxury-resort-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/canvas-safari-tent-inthailand/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-for-m8-in-mexcio/',
|
|
|
|
// 'https://www.tourletent.com/project/9m-pvc-dome-tent-in-canada/',
|
|
|
|
// 'https://www.tourletent.com/project/c900-hotel-tent-in-korea/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-in-guizhou/',
|
|
|
|
// 'https://www.tourletent.com/project/dome-tent-in-austin/',
|
|
|
|
// 'https://www.tourletent.com/project/safari-tent-in-italy/',
|
|
|
|
// 'https://www.tourletent.com/project/glass-igloo-in-china/',
|
|
|
|
// 'https://www.tourletent.com/project/tree-house-in-sichuan/'
|
|
|
|
// ];
|
|
|
|
|
|
|
|
// $project_id = 626;
|
|
|
|
// $project_site = 'v6-m342g.globalso.site';
|
|
|
|
// $pages = [
|
|
|
|
// 'https://www.lecusostreetlight.com/project_catalog/project/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project_catalog/project/page/2/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/560pcs-250w-smart-led-street-light-in-manila-city-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/3200pcs-8m-150w-solar-street-light-in-cebu-philippines/',
|
|
|
|
// 'https://lecusostreetlight.com/project/170pcs-100w-split-lithium-battery-solar-street-light-in-tanzania/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/250pcs-40w-sl-series-solar-street-light-in-kuwait/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/272pcs-8m-80w-solar-street-light-in-tanzania/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/185pcs-10m-120w-highway-solar-street-light-in-jordan/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/270pcs-9m-patterned-decorative-light-pole-with-150w-led-cobra-light-in-cambodia/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/48pcs-5m-24w-decorative-aluminium-pole-in-dubai-uae/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/105pcs-9m-100w-led-street-light-in-sri-lanka/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/45pcs-6m-hot-dip-galvanized-double-arm-street-light-pole-in-dubai-uae/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/356pcs-8m-100w-solar-street-light-in-ethiopia/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/52pcs-6m-30w-solar-led-street-light-with-gel-battery-in-poland/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/225pcs-6m-80w-solar-street-light-in-vietnam/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/450pcs-7m-60w-double-arm-solar-light-in-nigeria/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/100pcs-6m-50w-led-street-light-in-maldives/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/202pcs-6m-40w-3000k-solar-street-light-in-manila-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/245pcs-120w-smart-led-street-light-in-bangkok-thailand/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/170pcs-7m-50w-all-in-one-solar-light-in-davao-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/80pcs-9m-150w-led-street-light-in-iraq/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/252pcs-6m-40w-separate-solar-street-light-with-lithium-battery-in-thailand/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/198pcs-8m-80w-zc-series-all-in-two-solar-light-in-philippines/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/5m-30w-morden-led-garden-light-in-russian/',
|
|
|
|
// 'https://www.lecusostreetlight.com/project/135pcs-all-in-one-solar-street-light-in-uae-dubai-park/'
|
|
|
|
// ];
|
|
|
|
|
|
|
|
foreach ($pages as $page) {
|
|
|
|
$this->start_collect(urldecode($page), $project_id, $project_site);
|
|
|
|
}
|
|
...
|
...
|
@@ -213,8 +228,19 @@ class HtmlCustomCollect extends Command |
|
|
|
$html = str_replace($old_info['home_url'], $project_site, $html);
|
|
|
|
|
|
|
|
//暂时隐藏小语种
|
|
|
|
$html = str_replace('<div class="change-language ensemble">', '<div class="change-language ensemble" style="display: none">', $html);
|
|
|
|
$html = str_replace('<div class="language_more">', '<div class="language_more" style="display: none">', $html);
|
|
|
|
// $html = str_replace('<div class="change-language ensemble">', '<div class="change-language ensemble" style="display: none">', $html);
|
|
|
|
// $html = str_replace('<div class="language_more">', '<div class="language_more" style="display: none">', $html);
|
|
|
|
|
|
|
|
//处理搜索
|
|
|
|
preg_match_all('/<form\s+[^>]*?action\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i', $html, $result_search);
|
|
|
|
$search = $result_search[2] ?? [];
|
|
|
|
foreach ($search as $vc) {
|
|
|
|
if((strpos($vc,'search.php') !== false) || (strpos($vc,'index.php') !== false)){
|
|
|
|
$html = str_replace($vc,'/search/',$html);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//增加统计代码
|
|
|
|
$html = str_replace('</body>', '<script src="https://ecdn6.globalso.com/public/customerVisit.min.js\"></script></body>', $html);
|
|
|
|
|
|
|
|
//html写入文件
|
...
|
...
|
|