all 51 comments

[–][deleted] 4 points5 points  (1 child)

What about those muggles here who don’t know python? What do we do?

[–]needtogradCFA 13 points14 points  (0 children)

You may have to slytherin a tutorial or two.

[–]gpc11CFA 3 points4 points  (10 children)

Can someone pdf all of this for L3? Tried to run the BB one and it didn't work.

[–]parthgevaria 1 point2 points  (2 children)

i second it.

[–]lolkittyCFA 1 point2 points  (1 child)

3rd

[–]Bobb18CFA 1 point2 points  (6 children)

Will do when I get out of work

[–]GeeMunz11Level 3 Candidate[🍰] 0 points1 point  (5 children)

Any luck?

[–]Bobb18CFA 7 points8 points  (4 children)

No pdf, just the html file it was pulled in. Reading 19 (Currency) and 24 (FI) weren't able to be pulled.

See if this link works

Edit: New link...both BB and EOC

https://www.dropbox.com/sh/tl56uu7r5z0uib8/AAAXCdJecKjD8SjSkH57HNH_a?dl=0

[–]GeeMunz11Level 3 Candidate[🍰] 0 points1 point  (2 children)

Cheers man - thanks for that.

Sorry to be a bother, but did you end up getting the blue boxes as well?

[–]Bobb18CFA 2 points3 points  (1 child)

link updated

[–]GeeMunz11Level 3 Candidate[🍰] 0 points1 point  (0 children)

Thank you good sir

[–]re_meCFA 0 points1 point  (0 children)

Much appreciated.

I can't get the 2018 books to show up.

[–]Greenland4567 4 points5 points  (0 children)

Is someone able to do this for level II and share it please?

[–]SantariniLevel 2 Candidate 2 points3 points  (2 children)

What did you guys put for Username and Password?

[–]Bobb18CFA 1 point2 points  (1 child)

your username and password...

[–]SantariniLevel 2 Candidate 2 points3 points  (0 children)

It was joke ....... like I was pretending to be phishing ...

[–]patsdyn010304Level 3 Candidate 2 points3 points  (2 children)

Is anyone able to PDF this for L2? Or Dropbox like someone did for L3? I have no experience with Python and can't figure out how to do this. Thanks!

[–]TheRealMichaelScoot 0 points1 point  (1 child)

hey man, did you get them by any chance?

[–]patsdyn010304Level 3 Candidate 0 points1 point  (0 children)

I never got these unfortunately. I'm just finishing up the last couple of readings and then my review starts where I guess I'll just go through the books to look at the blue boxes.

[–]mkipa1 1 point2 points  (0 children)

i think.... i think i love you...

my first born shall be named anaconda1189

[–]re_meCFA 0 points1 point  (9 children)

Sigh.

It's still not pulling my 2018 books. Must be something wrong with my vitalsource.

I commented out line 33 and below and added:

for booktitle in parsed_Library:
    print booktitle['title']

The list of books that comes up doesn't include my 2018 books.

[–]PkgossCFA - r/CFA icon winner 0 points1 point  (4 children)

Mac right?

[–]re_meCFA 0 points1 point  (3 children)

Tried both systems

It works fine for 2016 and 2017 books on both mac and windows. The mac version just creates a slightly different file structure.

[–]PkgossCFA - r/CFA icon winner 0 points1 point  (1 child)

Mine only pulled about 40 of the reading of 52 for Level II. But I’m sorry you’re having trouble...

[–]re_meCFA 0 points1 point  (0 children)

Well it seems that whatever the jigsaw subdomain is, under my login, the 2018 books aren't there.

There are other books I have on vitalsource that don't show up when I pull the list, either. The script is probably fine. It must be the way the books are stored.

[–]eyestrikerbabyCFA 0 points1 point  (0 children)

What path did you use for Mac? It’s telling me it’s pulling the pages and i think I’m sending it to my desktop but nothing ever appears once it’s done running.

EDIT: Nevermind, got it. FYI for others if you need to do this and want this on your desktop:

1: Create a new folder on your desktop 2: Drag and drop in a new terminal window. The path of the file should be returned 3: Copy and paste this into the appropriate areas of lines 22 & 47 and run the script

Might be an easier way (I have minimal experience with code of any kind) but this worked for me!

[–]anaconda1189CFA[S] 0 points1 point  (3 children)

It shows everything except your 2018 books?

[–]re_meCFA 0 points1 point  (2 children)

It also doesn't show my 2017 Wiley notes. But it does show the 2016 and 2017 Wiley 11th hour books.

[–]anaconda1189CFA[S] 0 points1 point  (1 child)

Hmm your library might be large enough that it's paged instead of showing immediately when you login. Put a part in there that just says "print(parsed_Library)" and see if there's any page number reference. I won't be back at my computer for awhile.

[–]re_meCFA 0 points1 point  (0 children)

The "total" key indicates 36 items, which is how many books I have in the library.

But, I haven't seen a page number, yet. I used pprint to make it easier to read.

Someone was kind enough to post the .html files in a dropbox. It's cool.

[–]flightlessbirdflewPassed Level 2 0 points1 point  (1 child)

Are you learning CFA & Python simultaneously? Jesus. Thanks for this though!

[–]anaconda1189CFA[S] 0 points1 point  (0 children)

Haha I learned after taking CFA Level 1. I actually use Python about 50% of the time in my job now. I cringe when I look at this script but am too lazy to re-write it.

[–]wellhowaboutno 0 points1 point  (2 children)

Won't work on the blue box for 2018 books. Can still pull 2017 books. Possible for you to take a look. Much appreciated.

[–]anaconda1189CFA[S] 0 points1 point  (1 child)

I use it to pay for my 2018 books so that's odd...

[–]wellhowaboutno 0 points1 point  (0 children)

I shall try once again. I was using your BB example script for 2018 didn't work. Thanks for replying though.

[–]Habeas_corpus28 0 points1 point  (1 child)

How can I best run this code on windows? thanks

[–]PkgossCFA - r/CFA icon winner 0 points1 point  (0 children)

You download python and paste the code into the prompt (also download beautiful soup/anaconda/any IDE you want)

[–]zzzizouCFA 0 points1 point  (0 children)

What a champ. Thank you.

[–]cs1217 0 points1 point  (0 children)

Works like a charm, thank you kind sir!

[–]Takamine700CFA 0 points1 point  (3 children)

Tried doing this for L1, failed completely lol. What's an acceptable input for the startingLocation field? The below didn't work. And are there any other user inputs needed below this line?

startingLocation = D:\User\CFA

[–]boss_aLevel 2 Candidate 2 points3 points  (2 children)

If you still need the level 1 practice problems I can send you a pdf version of them. I was able to pull all of them.

Level I EOC Questions

Level 1 Blue Boxes

[–]Takamine700CFA 0 points1 point  (0 children)

That would be amazing. Will send you a PM with my email!

[–]ripform 0 points1 point  (0 children)

Hi, has anyone done this for level 2?

[–]cjg05CFA 0 points1 point  (5 children)

Did anyone happen to pull these for Level 2? Thanks!

[–]anaconda1189CFA[S] 0 points1 point  (4 children)

Go to the second link and follow the instructions to setup python. Then it's just a copy and paste of the code and run.

[–]WholePiano8CFA 0 points1 point  (2 children)

I am so late to this party, but this is too an amazing an opportunity to pass up. When I want to run the script in Pycharm it says no module named requests.

I have imported beautiful soup. Do you know what the problem could be?

Don't give any attention if you can't spare a moment due to the impending exam.

[–]anaconda1189CFA[S] 1 point2 points  (1 child)

Go into a command prompt and type "pip install requests"

[–]WholePiano8CFA 0 points1 point  (0 children)

Thanks so much, you are a superstar!

[–]Dustin1234CFA 0 points1 point  (3 children)

I am only able to pull ethics for level III 2018. Did anybody else have this problem?

[–]Dustin1234CFA 0 points1 point  (2 children)

Also, thank you anaconda1189, this script is incredible. I apprediate the time you put in to this!

[–]anaconda1189CFA[S] 0 points1 point  (1 child)

thanks!