Find Jobs
Hire Freelancers

Parallel Python Code That Counts How Many Websites Have Canvas

$10-30 USD

Complété
Publié il y a plus de 6 ans

$10-30 USD

Payé lors de la livraison
I need a simple Python script that scrapes a list of websites in a csv file (e.g. top 500,000 Alexa sites attached), and checks if the website uses Canvas in the HTML (by checking for "<Canvas>") or in JavaScript (by checking for "createElement("canvas")" or "createElement('canvas')"). The code should output the number and percentage of websites using Canvas out of the list. It is recommended that the code uses the Python Libraries “Requests” and/or "BeautifulSoup4" with a similar logic as the one I started writing (attached). The following points need to be satisfied: • The code uses parallel computing for efficiency, so it doesn't run for so long • The http header has to look like it came from a real browser, so websites don't block it • The reading time of a website should not exceed 30 seconds, and should time out if no response for 30 seconds and go to the next website • The script needs to count and print the number of successfully read and unread sites from the csv file of top sites (as the one I am attaching does for the unread). The unread sites could be because a website is no longer available or responsive, or any other reason • The script needs to handle errors and doesn't crash • The script has to print the duration of execution (how many hours, minutes or seconds) • The script has to print the number and percentage of sites containing Canvas either in the HTML source code or JavaScript It would be great if we can have a version that is not parallel to compare the performance, but not super important
N° de projet : 15614099

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 6 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
I am a python expert and i can do your work. i can start immediately. and complete your work on time.
$30 USD en 1 jour
4,9 (161 commentaires)
6,2
6,2

À propos du client

Drapeau de SAUDI ARABIA
Alkhobar, Saudi Arabia
5,0
3
Méthode de paiement vérifiée
Membre depuis févr. 9, 2014

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.