Completato

python function to generate pdf from url

I need a python function that recieve 2 parameters and generate a PDF from a url and a XML from url.

prototype:

def generate_pdf(RBR, path_to_download):

#create url

url = "[url removed, login to view]%s/" % RBR

url_xml = "[url removed, login to view]%s/v1/xml/opentrials/" % RBR

#TODO

'''

generate pdf from url in english and in portugues

to change manually the language we have to

click on PT or EN at the top right of the screen

this PT and EN link is a trigger for a javascript

save generated PDFs at path_to_download

save xml from url_xml at path_to_download

'''

Adding on function:

def generate_pdf(RBR, path_to_download):
#create url
url = "http://ensaiosclinicos.gov.br/rg/%s/" % RBR
url_xml = "http://ensaiosclinicos.gov.br/rg/%s/v1/xml/opentrials/" % RBR

#TODO
'''
generate pdf from url in english and in portugues
to change manually the language we have to
click on PT or EN at the top right of the screen
this PT and EN link is a trigger for a javascript

save generated PDFs at path_to_download
save xml from url_xml at path_to_download

parse xml to get those informations:

date_registration
created
updated
trial_id
utrn_number
public_title
primary_sponsor_name
primary_sponsor_state
primary_sponsor_city
health_conditions = {"en_text":[], "pt_text":[]}
public_contact_firstname
public_contact_middlename
public_contact_lastname
public_contact_address
public_contact_zip
public_contact_city
public_contact_telephone
public_contact_email
'''

return {"xml": <path_to_download>RBR.xml,

"pt_pdf": <path_to_download>RBR_pt.pdf,
"en_pdf": <path_to_download>RBR_en.pdf,
"date_registration": <value>,
"created": <value>,
"updated": <value>,
"trial_id": <value>,
"utrn_number": <value>,
"public_title": <value>,
"primary_sponsor_name": <value>,
"primary_sponsor_state": <value>,
"primary_sponsor_city": <value>,
"ealth_conditions = {"en_text":[], "pt_text":[]}
"public_contact_firstname": <value>,
"public_contact_middlename": <value>,
"public_contact_lastname": <value>,
"public_contact_address": <value>,
"public_contact_zip": <value>,
"public_contact_city": <value>,
"public_contact_telephone": <value>,
"public_contact_email": <value>,
}


Competenze: Javascript, Python, Architettura Software, XML

Vedere di più: html to pdf python django, pdfkit from url, xhtml2pdf python, python html to pdf example, python create pdf, wkhtmltopdf python, python pdfkit, python save webpage as pdf, php script generate pdf url, vtiger function generate invoice pdf, code generate tiny url twitterc net, pdf language translators spanish english, vba function create pdf 2007, pdf url aspxvb, pdf url pdf, bytes pdf url, php function convert valid url, wordpress plugin generate thumbnail url, software generate traffic url, pdf converterget pdf url bytes

Sul datore di lavoro:
( 2 valutazioni ) Rio de Janeiro, Brazil

ID Progetto: #16621770

Assegnato a:

banalaarunkumar

Hi, I've written several scripts for web scraping and automation. Some of them include, facebook bot to auto comment on newer posts, bot to send email enquiries on housing websites. I've used python for developing t Più

$15 USD in 1 giorno
(1 Recensione)
1.2

13 freelance hanno fatto un'offerta media di $32 per questo lavoro

goalscoreplayer

I want to work for your project. I'm very interested in your project. I'd like you to call me on chat. If you give me the task, I'm very glad for you. I'll give you the best solution for the project for you in time and Più

$50 USD in 1 giorno
(18 Recensioni)
5.3
RushService

Feel fee to contact me for python function to generate pdf from [login to view URL] me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] pa Più

$30 USD in 1 giorno
(26 Recensioni)
5.3
Vadimwang

Hello Having experience of python, I can do what you want. Python is my primary programming language. Let us discuss details in chat.

$30 USD in 1 giorno
(41 Recensioni)
4.5
urstealth

A proposal has not yet been provided

$30 USD in 1 giorno
(11 Recensioni)
3.9
PunctualityMan

Hi! I am very familiar with python, I have 5 years of experience in python develop. I can do your project. please discuss your project. Thanks!

$55 USD in 1 giorno
(12 Recensioni)
3.5
ThisIsLvl4Sword

A proposal has not yet been provided

$30 USD in 3 giorni
(1 Recensione)
3.7
yogeshpawar159

I have checked at website and tested the function successfully. It's already done. Contact for further details.

$25 USD in 1 giorno
(2 Recensioni)
1.5
Saradiab93

Hi, Mr Do you use any framework? Waiting for your message to start to discuss this task and work Good luck Mr.

$25 USD in 1 giorno
(1 Recensione)
0.3
anujism

I am an experience Python developer with more than 9 years of experience. I have developed many projects from scratch. I have very good experience in pandas and numpy.

$25 USD in 1 giorno
(0 Recensioni)
0.0
malych

Professional hacker for western country - Israel. can deliver in super short time, and have done this many times before.

$35 USD in 1 giorno
(0 Recensioni)
0.0
jdiheb

I have experience in this kind of projects and i can assure you a quality results with high and cutting edge techniques and technology

$45 USD in 1 giorno
(0 Recensioni)
0.0
$25 USD in 1 giorno
(0 Recensioni)
0.0