Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Devharsh Trivedi devharsh

🎯
Focusing
View GitHub Profile
@devharsh
devharsh / linkInternalExternalExtractor.py
Last active Feb 8, 2018
Lists down all unique internal and external links from all the given values of URL.
View linkInternalExternalExtractor.py
#!/usr/bin/python
__author__ = "Devharsh Trivedi"
__copyright__ = "Copyright 2018, Devharsh Trivedi"
__license__ = "GPL"
__version__ = "1.4"
__maintainer__ = "Devharsh Trivedi"
__email__ = "devharsh@live.in"
__status__ = "Production"
@devharsh
devharsh / writeToPdf.py
Last active Dec 29, 2016
Create PDF from scratch - write strings to PDF in Python. Fore reference and credits please visit: http://com.puter.tips/2016/12/create-pdf-from-python.html
View writeToPdf.py
import io
from reportlab.platypus import SimpleDocTemplate, Paragraph
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import inch
from reportlab.lib.pagesizes import letter
buf = io.BytesIO()
doc = SimpleDocTemplate(
buf,