-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdoc.html
More file actions
725 lines (709 loc) · 27.5 KB
/
doc.html
File metadata and controls
725 lines (709 loc) · 27.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./css/styleDoc.css" />
<title>Documentation</title>
</head>
<body>
<!-- ======================== Start Section Aside ======================== -->
<div class="nav-toggler">
<div class="open-nav">≡</div>
</div>
<div class="aside">
<div class="close-nav hidden">❌</div>
<div class="logo-container">
<a href="/" class="logo">
<h3>
<i>Scraper-UI.</i>
</h3>
<img
alt="logo"
height="30"
src="./images/svg/peviitor.svg"
width="100"
/>
</a>
</div>
<ul class="aside-nav">
<li>
<a href="#links" class="active">Link-uri Utile</a>
</li>
<li>
<a href="#program">Program Intalniri</a>
</li>
<li>
<a href="#webScraping">Web Scraping</a>
</li>
<li>
<a href="./diagram/diagram.html">Software Architecture</a>
</li>
</ul>
</div>
<!-- ======================== Start Section Aside ======================== -->
<!-- ======================== Start Section Links ======================== -->
<section class="links active section" id="links">
<div class="container">
<div class="section-title padd-15">
<h1 class="h1-border">
<span class="left-border-univ"></span>Link-uri Utile
<span class="right-border-univ"></span>
</h1>
</div>
<div class="links-content padd-15">
<div class="cards">
<img
src="./images/logo-aoc.png"
alt="Logo_Asociatia_Oportunitati_Si_Cariere"
width="250"
/>
<span class="light"> </span>
<a href="https://www.oportunitatisicariere.ro/acasa" target="_blank"
>Asociatia Oportunitati <br />
si Cariere</a
>
</div>
<div class="cards">
<img src="./images/github.png" alt="GitHub" width="200" />
<a href="https://github.com/peviitor-ro" target="_blank">GitHub</a>
</div>
<div class="cards">
<img
src="./images/sad_peviitor.png"
alt="sad_peviitor"
width="250"
/>
<a href="https://sad.peviitor.ro/" target="_blank"
>Descrierea Arhitecturii Aplicatiei
</a>
</div>
<div class="cards">
<img
src="./images/legal_peviitor.png"
alt="legal_peviitor"
width="250"
/>
<a href="https://legal.peviitor.ro/" target="_blank"
>Sectiunea legala
</a>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>Motor de cautare PeViitor
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img src="./images/peviitor.png" alt="peviitor" width="250" />
<a href="https://peviitor.ro/" target="_blank"
>Motor de cautare <br />
Locuri de munca</a
>
</div>
<div class="cards">
<img
src="./images/v01_peviitor.png"
alt="v01_peviitor"
width="250"
/>
<a href="https://v01.peviitor.ro/" target="_blank"
>Versiunea 01 a motorului de cautare peviitor.ro
</a>
</div>
<div class="cards">
<img
src="./images/v02_peviitor.png"
alt="v02_peviitor"
width="250"
/>
<a href="https://v02.peviitor.ro/" target="_blank"
>Versiunea 02 a motorului de cautare peviitor.ro
</a>
</div>
<div class="cards">
<img
src="./images/splash_peviitor.png"
alt="splash_peviitor"
width="250"
/>
<a href="https://splash.peviitor.ro/ " target="_blank"
>Ecranul Splash</a
>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>Discord
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img src="./images/discord.png" alt="Discord" width="250" />
<a
href="https://www.google.com/url?q=https%3A%2F%2Fdiscord.gg%2Ft2aEdmR52a&sa=D&sntz=1&usg=AOvVaw2T-L7jAgzen0J-qResoTGU"
target="_blank"
>Discord</a
>
</div>
<div class="cards">
<img
src="https://placehold.co/200x150?text=Discord\nBot+Invitation"
alt="legal_peviitor"
/>
<a href="peviitor.bot" target="_blank">Discord BOT invitation </a>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>API
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img
src="./images/api_peviitor.png"
alt="api_peviitor"
width="250"
/>
<a href="https://api.peviitor.ro/" target="_blank"
>Descrierea tehnica a <br />
functionalitatilor implementate
</a>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>Testare
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img src="./images/qa_peviitor.png" alt="qa_peviitor" width="250" />
<a href="https://qa.peviitor.ro/" target="_blank"
>Echipa de testare si procesul de testare
</a>
</div>
<div class="cards">
<img
src="./images/test_peviitor.png"
alt="test_peviitor"
width="250"
/>
<a href="https://test.peviitor.ro/" target="_blank"
>Environmentul de testare
</a>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>Scrapere
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img
src="./images/dev_peviitor.png"
alt="dev_peviitor"
width="250"
/>
<a href="https://dev.peviitor.ro/" target="_blank"
>Sectiunea dezvoltator de scrapere
</a>
</div>
<div class="cards">
<img
src="./images/firme_peviitor.png"
alt="firme_peviitor"
width="250"
/>
<a href="https://firme.peviitor.ro/" target="_blank"
>Firmele pentru care exista scrapere scrise si functionale pe
productie
</a>
</div>
<div class="cards">
<img
src="./images/scraper_peviitor.png"
alt="scraper_peviitor"
width="250"
/>
<a href="https://scraper.peviitor.ro/" target="_blank"
>Despre scrapere
</a>
</div>
</div>
<h1 class="h1-border">
<span class="left-border-univ"></span>Back-End (SOLR)
<span class="right-border-univ"></span>
</h1>
<div class="links-content padd-15">
<div class="cards">
<img
src="./images/solr_peviitor.png"
alt="solr_peviitor"
width="250"
/>
<a href="https://solr.peviitor.ro/solr/#/" target="_blank"
>Indexul (BAZA DE Date a) motorului de cautare peviitor.ro
</a>
</div>
</div>
</div>
</section>
<!-- ======================== End Section Links ======================== -->
<!-- ======================== Start Section Program ======================== -->
<section class="program section" id="program">
<div class="container">
<div class="section-title padd-15">
<h1 class="h1-border">
<span class="left-border-univ"></span>Program Intalniri
<span class="right-border-univ"></span>
</h1>
</div>
<div class="program-content">
<div class="days">
<div class="program-top">
<div>
<span>18:30 LUNI</span>
<p>Intalnire cu echipa de testare</p>
</div>
</div>
<div class="program-mid">
<div>
<span>18:30 MARTI</span>
<p>Intalnire cu ASOCIATIA OPORTUNITATI SI CARIERE</p>
</div>
<a href="https://meet.jit.si/PEVIITOR.RO" target="_blank">
<img
src="https://cdn.pixabay.com/photo/2023/02/09/18/42/podcast-7779510_1280.png"
alt="Meeting"
/>
</a>
<div>
<span>18:30 MIERCURI</span>
<p>
Intalnire cu noii membrii, prezentare proiect si invitare in
comunitate
</p>
</div>
</div>
<div class="program-bot">
<div>
<span>18:30 JOI</span>
<p>Intalnire cu echipa de front-end</p>
</div>
<div>
<span>19:00 VINERI</span>
<p>Intalnire cu echipa de scraperisti</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ======================== End Section Program ======================== -->
<!-- ======================== Start Section Web Scraping ======================== -->
<section class="web-scraping section" id="webScraping">
<div class="container">
<div class="section-title padd-15">
<h1>What is Web Scraping and What is it Used For?</h1>
</div>
<div class="container webscraping-container">
<div class="text">
<h3>
Web scraping is one of the most efficient and useful ways to
extract data from a website, especially in 2023!
</h3>
<p>
Some websites can contain a very large amount of invaluable data.
</p>
<p>
Stock prices, product details, sports stats, company contacts, you
name it.
</p>
<p>
If you wanted to access this information, you’d either have to use
whatever format the website uses or copy-paste the information
manually into a new document. Here’s where web scraping can help.
</p>
</div>
<div class="text">
<h2>What is Web Scraping?</h2>
<p>
Web scraping refers to the
<strong>extraction of data from a website.</strong> This
information is collected and then exported into a format that is
more useful for the user. Be it a spreadsheet or an API.
</p>
<div>
<img
src="./images/webscraping/what-is-web-sraping-parsehub.jpeg"
alt="web-scraping"
/>
</div>
<p>
Although web scraping can be done manually, in most cases,
automated tools are preferred when scraping web data as they can
be less costly and work at a faster rate.
</p>
<p>
But in most cases, web scraping is not a simple task. Websites
come in many shapes and forms, as a result, web scrapers vary in
functionality and features.
</p>
<ul>
<p>
Please note that you may encounter captchas when attempting to
scrape some websites, so we suggest reading several guides on
how to avoid & bypass captchas before scraping a website:
</p>
<li>
<a
href="https://proxyway.com/guides/how-to-bypass-captcha"
target="_blank"
>How to avoid and bypass captchas</a
>
</li>
<li>
<a
href="https://help.parsehub.com/hc/en-us/articles/115004504048-Solving-Captcha-for-all-Paid-plans-"
target="_blank"
>Solving Captcha (for all Paid plans)</a
>
</li>
</ul>
</div>
<div class="text">
<h2>Is web scraping legal?</h2>
<p>
In short, the action of web scraping isn't illegal. However, some
rules need to be followed. Web scraping becomes illegal when non
publicly available data becomes extracted.
</p>
<p>
This comes as no surprise given the growth of web scraping and
many recent legal cases related to web scraping.
</p>
<p>
If you want to learn more about the legality of web scraping, you
can continue reading here:
<a
href="https://www.parsehub.com/blog/web-scraping-legal/"
target="_blank"
>Is web scraping legal?</a
>
</p>
</div>
<div class="text">
<h2>How do Web Scrapers Work?</h2>
<p>
So, how do web scrapers work? Automated web scrapers work in a
rather simple but also complex way. After all, websites are built
for humans to understand, not machines.
</p>
<p>
First, the web scraper will be given one or more URLs to load
before scraping. The scraper then loads the entire HTML code for
the page in question. More advanced scrapers will render the
entire website, including CSS and Javascript elements.
</p>
<p>
Then the scraper will either extract all the data on the page or
specific data selected by the user before the project is run.
</p>
<p>
Ideally, the user will go through the process of selecting the
specific data they want from the page. For example, you might want
to scrape an Amazon product page for prices and models but are not
necessarily interested in product reviews.
</p>
<p>
Lastly, the web scraper will output all the data that has been
collected into a format that is more useful to the user.
</p>
<p>
Most web scrapers will output data to a CSV or Excel spreadsheet,
while more advanced scrapers will support other formats such as
JSON which can be used for an API.
</p>
<div>
<img
src="./images/webscraping/web-to-google-sheet.jpeg"
alt="Chrome->Excel"
/>
</div>
</div>
<div class="text">
<h2>What Kind of Web Scrapers are There?</h2>
<p>
Web scrapers can drastically differ from each other on a
case-by-case basis.
</p>
<div>
<img
src="./images/webscraping/types-of-web-scrapers.jpeg"
alt="types_of_scrapers"
/>
</div>
<ul>
<p>
For simplicity’s sake, we will break down some of these aspects
into <strong>4 categories.</strong> Of course, there are more
intricacies at play when comparing web scrapers.
</p>
<li>self-built or pre-built</li>
<li>browser extension vs software</li>
<li>User interface</li>
<li>Cloud vs Local</li>
</ul>
<h3>Self-built or Pre-built</h3>
<p>
Just like how anyone can build a website, anyone
<a
href="https://www.datacamp.com/tutorial/making-web-crawlers-scrapy-python"
target="_blank"
>can build their own web scraper.
</a>
</p>
<p>
However, the tools available to build your own web scraper still
require some advanced programming knowledge. The scope of this
knowledge also increases with the number of features you’d like
your scraper to have.
</p>
<p>
On the other hand, there are numerous pre-built web scrapers that
you can download and run right away. Some of these will also have
advanced options added such as scrape scheduling, JSON and Google
Sheets exports and more.
</p>
<h3>Browser extension vs Software</h3>
<p>
In general terms, web scrapers come in two forms: browser
extensions or computer software.
</p>
<p>
Browser extensions are app-like programs that can be added to your
browsers such as Google Chrome or Firefox. Some popular browser
extensions include themes, ad blockers, messaging extensions and
more.
</p>
<p>
Web scraping extensions have the benefit of being simpler to run
and being integrated right into your browser.
</p>
<p>
However, these extensions are usually limited by living in your
browser. Meaning that any advanced features that would have to
occur outside of the browser would be impossible to implement. For
example, IP Rotations would not be possible in this kind of
extension.
</p>
<p>
On the other hand, you will have actual web scraping software that
can be downloaded and installed on your computer. While these are
a bit less convenient than browser extensions, they make up for it
in advanced features that are not limited by what your browser can
and cannot do.
</p>
<h3>User Interface</h3>
<p>
The user interface between web scrapers can vary quite extremely.
</p>
<p>
For example, some web scraping tools will run with a minimal UI
and a command line. Some users might find this unintuitive or
confusing.
</p>
<p>
On the other hand, some web scrapers will have a full-fledged UI
where the website is fully rendered for the user to just click on
the data they want to scrape. These web scrapers are usually
easier to work with for most people with limited technical
knowledge.
</p>
<p>
Some scrapers will go as far as integrating help tips and
suggestions through their UI to make sure the user understands
each feature that the software offers.
</p>
<h3>Cloud vs Local</h3>
<p>From where does your web scraper actually do its job?</p>
<p>
Local web scrapers will run on your computer using its resources
and internet connection. This means that if your web scraper has a
high usage of CPU or RAM, your computer might become quite slow
while your scrape runs. With long scraping tasks, this could put
your computer out of commission for hours.
</p>
<p>
Additionally, if your scraper is set to run on a large number of
URLs (such as product pages), it can have an impact on your ISP’s
data caps.
</p>
<p>
Cloud-based web scrapers run on an off-site server which is
usually provided by the company that developed the scraper itself.
This means that your computer’s resources are freed up while your
scraper runs and gathers data. You can then work on other tasks
and be notified later once your scrape is ready to be exported.
</p>
<p>
This also allows for very easy integration of advanced features
such as IP rotation, which can prevent your scraper from getting
blocked from major websites due to their scraping activity.
</p>
</div>
<div class="text">
<h2>What are Web Scrapers Used For?</h2>
<p>
By this point, you can probably think of several different ways in
which
<a
href="https://www.parsehub.com/blog/a-complete-guide-on-offering-web-scraping-services/"
target="_blank"
>web scrapers can be used.</a
>
We’ve put some of the most common ones below (plus a few unique
ones).
</p>
<h3>Real Estate Listing Scraping</h3>
<p>
Many real estate agents use web scraping to populate their
database of available properties for sale or for rent.
</p>
<p>
For example, a real estate agency will scrape MLS listings to
build an API that directly populates this information onto their
website. This way, they get to act as the agent for the property
when someone finds this listing on their site.
</p>
<p>
Most listings that you will find on a Real Estate website are
automatically generated by an API.
</p>
<h3>Industry Statistics and Insights</h3>
<p>
Many companies use web scraping to build massive databases and
draw industry-specific insights from these. These companies can
then sell access to these insights to companies in said
industries.
</p>
<p>
For example, a company might scrape and analyze tons of data about
oil prices, exports and imports in order to sell their insights to
oil companies across the world.
</p>
<h3>Comparison Shopping Sites</h3>
<p>
Some several websites and applications can help you to easily
compare pricing between several retailers for the same product.
</p>
<p>
One way that these websites work is by using web scrapers to
scrape product data and pricing from each retailer daily. This
way, they can provide their users with the comparison data they
need.
</p>
<h3>Lead Generation</h3>
<p>
One incredibly popular use of web scraping is lead generation.
This use is so popular in fact, that we have written an entire
guide on using web scraping for lead generation.
</p>
<p>
In short, web scraping is used by many companies to collect
contact information about potential customers or clients. This is
incredibly common in the business-to-business space, where
potential customers will post their business information publicly
online.
</p>
<ul>
<h3>
Check out our guides of how you can use web scraping for your
business:
</h3>
<li>
<a
href="https://www.parsehub.com/blog/scrape-yahoo-finance/"
target="_blank"
>Scraping stock prices into an app API</a
>
</li>
<li>
<a
href="https://www.parsehub.com/blog/scrape-yellow-pages/"
target="_blank"
>Scraping data from YellowPages to generate leads</a
>
</li>
<li>
<a
href="https://www.parsehub.com/blog/how-to-get-the-locations-of-retail-stores-with-web-scraping/"
target="_blank"
>Scraping data from a store locator to create a list of
business locations</a
>
</li>
<li>
<a
href="https://www.parsehub.com/blog/scrape-ebay-data/"
target="_blank"
>Scraping product data from sites like Amazon or eBay for
competitor analysis</a
>
</li>
<li>
<a
href="https://www.parsehub.com/blog/power-your-sports-stats-with-web-scraping/"
target="_blank"
>Scraping sports stats for betting or fantasy leagues</a
>
</li>
<li>Scraping site data before a website migration</li>
<li>
<a
href="https://www.parsehub.com/blog/using-parsehub-to-compare-sneaker-prices/"
target="_blank"
>Scraping product details for comparison shopping</a
>
</li>
<li>
<a
href="https://www.parsehub.com/blog/scrape-financial-statements/"
target="_blank"
>Scraping financial data for market research and insights</a
>
</li>
</ul>
<p>
The list of things you can do with web scraping is almost endless.
After all, it is all about what you can do with the data you’ve
collected and how valuable you can make it.
</p>
</div>
<div class="text">
<h2>The Best Web Scraper</h2>
<p>The obvious answer is that <strong>it depends.</strong></p>
<p>
The more you know about your scraping needs, the better of an idea
you will have about what’s the best web scraper for you.
</p>
</div>
<div class="text">
<h2>
Information taken from:
<a
href="https://www.parsehub.com/blog/what-is-web-scraping/"
target="_blank"
>ParseHub</a
>
</h2>
</div>
</div>
</div>
</section>
<!-- ======================== End Section Web Scraping ======================== -->
<!-- ======================== Start Section Empty ======================== -->
<section class="section"></section>
<!-- ======================== End Section Empty ======================== -->
<script src="js/doc.js"></script>
</body>
</html>