Create Asana task from html page

tasks

#1

Hey everyone,
Wondering if it’s possible to create a task from an html page. See the images below.

Thank you !


#2

Hey. You can create a task with this info at the description.

The issue at your case is that you will need a script to scrape the html. This information will be the the notes area of a task that will be created using the Asana API.

You will need someone to code this script that will scrape the page and post these data in asana.


#3

hey @Diakoptis thank you for your quick response.

I’m scraping it through python 3. My issue is how to convert it to a “readable” json format so I can upload it via API later here on Asana.

Would you mind helping me if I share the html code with you ?

Thanks.


#4

I have basic knowledge of python but if you give me the variables I can help you to create the notes_html of the task :slight_smile:


#5

if you set the html_notes field of a task like:

“Product Name 10.90\nhttps://example.com\n\nProduct Name 10.90\nhttps://example.com\n\n”

you will get the result you want. Unfortunately you will need to use spaces for margins. Another way would be to use just bold for the price.

more info for the html tags that allowed by asana here


#6

Hey @Diakoptis,

Have a look at our html code below and try to help me please :

TWEU-08.03.18-[1]-Yo_ba

	<div class="prod_image_wrap">
		<div class="prod_image">
			<a href="http://www.tenniswarehouse-europe.com/zzz/invisdescpage.html?pcode=YOTO4B"><img src="http://img.tenniswarehouse-europe.com/watermark/rs.php?path=YOTO4B-1.jpg&nw=130" alt="Yonex Tour 4-Ball Can"  /></a>
		</div>
		<div class="prod_name">Yonex Tour 4-Ball Can</div>
		<div class="prod_price">$6,74</div>
	</div>

Thank you !


#7

Take a look at the link @Diakoptis provided as to what HTML tags are supported. <div> is not supported, nor are CSS classes.


#8

@Phil_Seeman - well, I’m not intending to send all that

or css classes… @Diakoptis knows what I’m talking about…right ?