andrewkhodyakov / crawler Goto Github PK
View Code? Open in Web Editor NEWmy crawler
my crawler
Краулер для собра данных по ссылке указывающей на нужную категорию: - делает GET на указанную в аргументе ссылку, получает данные или падает если она битая; - находить секцию с сылкой на пагинацию - и заня максимальное число старниц делает GET запросы на каждую старницу и собирает их; - парсинг старницы заключается в след - супом находить структурур отвечающую за пагинцию и перебираем элеенты. 0. GET first 1. calc how many pages, convert first page 2. GET next page and convert (again in many times) 3. all save to csv. 4. df - from csv, and calc in pandas HTML STRUCT: tag: body tag: div, class = 'layout-internal col-12 js-autosuggest__search-list-container' tag:div, class = 'l-content js-l-content clearfix' tag: div. class = 'catalog-content' #--------------------------------------- items folder tag: div, class = 'catalog-main catalog_list' tag: div. class = 'catalog-list clearfix' tag: div, class = 'js-catalog_before-ads' #--------------------------------------- pagination folder, next page link tag: div, class = 'pagination js-pages' #--------------------------------------- next page link tag: div, class = 'pagination-nav clearfix' tag: a, class = 'pagination-page js-pagination-next' target field: herf ----> contein link to enother page #--------------------------------------- total pages count tag: div, class = 'pagination-pages clearfix' tag: span, class = 'pagination-page pagination-page_current' tag: a, class = 'pagination-page' target field: herf ----> contein link to last page marker - text: 'Последняя' one item struct: tag:div, class = 'item item_list js-catalog-item-enum clearfix item-highlight' tag: div, class = 'title description-title' tag: h3, class = 'description-title-link' tag: a, class = 'description-title-link' target field: title ----> contain string with info
Дописать проверку на одинаковость загруженного контента, для избегания загрузки циклический одних и тез же страниц, если на backend сайта стоит troattling
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.