Прогресс бар на JS
Сделать на php подобно этому http://www.quizful.net/post/progressbar_with_jquery
либо https://habr.com/post/124401/
либо еще лучше этот http://lifeexample.ru/php-primeryi-skriptov/php-ajax-polosa-zagruzki-progressbar.html
Только должен быть один общий сайдбар и несколько поменьше, соотвествующих потокам.
Теперь подробнее, что визуализируется.
Есть файл лога многопоточного парсера:
Array
(
[thread_status] => Array
(
[0] => Array
(
[Был в кэше] => 234
)
[1] => Array
(
[Был в кэше] => 234
)
[2] => Array
(
[Был в кэше] => 233
)
[3] => Array
(
[Был в кэше] => 233
[Спарсен повторно] => 41
)
[4] => Array
(
[Был в кэше] => 233
[Error] => 10
)
[5] => Array
(
[Был в кэше] => 233
[Спарсен] => 54
)
)
[task] => Array
(
[all_task] => 83999
[was_processed] => 1500
)
[all_status] => Array
(
[Был в кэше] => 1394
[Спарсен] => 54
[Спарсен повторно] => 41
[Error] => 10
)
[notice]='Парсер работает 1 день 4 часа';
[thread_notice] => Array
(
[0] => 'похоже прокси нерабочий',
[4] => 'слишком частые ошибки',
}
)
По сути есть общее число задач в очереди (урлов): all_task и уже обработанных от начала запуска парсера: was_processed
[all_status] - статусы спарсенных урлов, вывести в прогрессбаре разными цветами:
[Был в кэше] - светлосиним
[Спарсен] - зеленым
[Спарсен повторно] - темно-зеленым
[Error] => красным
[подсчитать для каждого потоко ориентировачно оставшиеся задачи как всю очередь минус обработанные деленное на число потоков] - оранжевым
Исполнителя будет дан путь к json массива, который можно забирать в режиме реального времени. Прошу заинтерисованных оставить заявку обязательно с указанием цены и сроков.
Еще вывести статус лога, как давно он был создан, если более 15 минут назад, статус оранжевый (пауза), иначе зеленым (работает)
Current freelance projects in the category Javascript and Typescript
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 19 hours 48 minutes back ∙ 21 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 2 days 11 hours back ∙ 93 proposals |
Full-stack developmentNeed a full-stack developer who is free for work and not looking to get rich immediately from this project. This is my test site: readyhome.ge the prototype of which I want to create (not referring to design). In the footer, there is Russian language, fill out the questionnaire… Javascript and Typescript, Web Programming ∙ 3 days back ∙ 80 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 3 days 6 hours back ∙ 26 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 5 days 7 hours back ∙ 55 proposals |