kazuar / login_scraper_example

214 stars 137 forks source link

Xpath route is not correct anymore #1

Closed diegozr1 closed 8 years ago

diegozr1 commented 8 years ago

I found the list of projects on bitbucket dashboard by using this

bucket_names = tree.xpath('//div[@class="repo-list--repo"]/a/text()') print(bucket_names)

instead of using

bucket_elems = tree.findall(".//span[@class='execute repo-list--repo-name']") bucket_names = [bucket_elem.text_content().replace("\n", "").strip() for bucket_elem in bucket_elems]

I used python3 (just changed the print method)

kazuar commented 8 years ago

Thanks @zdr00 !

Fixed and pushed.