Skip to content

Tinoco/Ticapsoriginal_div2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ticapsoriginal_div2png

Programmatically Div design to png generator of html code from url

scan all divs from url

make python environment:

  • Install pip first:
sudo apt-get install python3-pip
  • Then install virtualenv using pip3
sudo pip3 install virtualenv 
  • Now create a virtual environment
virtualenv venv
  • Active your virtual environment:
source venv/bin/activate
  • Enter on environment:
cd venv

Install requests to get responses and make requests:

pip install requests

Install urllib parsing url data:

pip install urllib3

Install bs4 to access BeautilSoup library:

pip install bs4

Install html2image library to convert html to png:

pip install html2image

Clone Ticapsoriginal_div2png repository:

 git clone https://github.com/Tinoco/Ticapsoriginal_div2png.git
  • Change the pdiv2png.py file with your sitemap url

run Ticapsoriginal div2png programmatically generator:

 python pdiv2png.py

Result :

quality:

about: