wrangling data in jupyter notebooks - python

Error whilst trying to gather twitter data.
I have been given some info for twitter API but it seems i have problems even copying and pasting. When looping through the data it keeps failing, could someone point me in the direction of what is going wrong please?
https://gist.github.com/PWynter/fddecee280b6a398e2a03e129b4dbb46
i must be blind as i really can't see the error
https://gist.github.com/PWynter/fddecee280b6a398e2a03e129b4dbb46
Expected the return of print success

Related

Pulling stills from markers with scripting in Davinci Resolve

I've been using Resolve as a way to find images to pull from videos I've shot for use on my website and elsewhere. My problem is Resolve doesn't have a good way of categorizing/looking at stills, I'd like to be able to pull the stills and then look at them in something like Adobe Bridge where I can rate them and organize them.
Right now I just have a timeline with about 400 markers on it, meaning I have to go pull 400 stills. Is there an easy way to use the scripting in Resolve to have the computer pull those stills and dump them to a folder on my desktop?
I tried to run the script from here: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=119036 but I couldn't get it to run, always getting a syntax error in IDLE or directly in Resolves console. I'd prefer to have the images in a folder by themselves as well, I don't need most of the other information that script would give me.
Thanks for helping me out!

python dash failed to fetch, failed to read from JSON

Recently i have been working with dash, and randomly but rarely these two errors show up. I have no idea why. My program is huge and i do not know what is the problematic part of it. I cannot really replicate the errors. Do you have any suggestions what to look for?
At the failed to fetch problem this is a more detailed error:
dash.exceptions.DependencyException: "dash_renderer" is registered but the path requested is not valid.

Web scraping: Why is Jupyter Notebook not printing the output of my code?

I'm new to web scraping and still in the "teaching myself" phase. This is an exercise for scraping job titles, etc. from a CraigsList result page. This is exactly what the instructor in the video (taking courses on Udemy) did, and for him, it printed out the details he specified in the code. Yet, when I type out the exact same thing, there is no output.
However...
When I tested it out with a quick and short print function, it works. Working while testing it out, but not working in the web-scraping code.
Does anyone here know what the web-scraping code has (or doesn't have) that is preventing the print statement from printing out the output?
the web scraping code in Jupyter Notebook
Things I've already tried:
Tested it out in a different browser. I use Brave, and I tried in Chrome. The same thing happens.
Restarting the kernel and rerunning the code.
Copying and pasting code into a new notebook (file, I guess), then running it there.

why EvtBadHeaderError appears when reading an .evt file in obspy

I am using a command called read on the Obspy library in Python. I am just trying to read a .evt file. However the following error appears:
EvtBadHeaderError: Bad Frame values
And my code is:
from obspy import readdt = read('evtfile.evt',format='KINEMETRICS_EVT')
I searched for it and this error comes from this EvtBadHeaderError webpage. I tried to contact someone on the obspy forum page but i didn't get any answer. So i am just trying to find out where this error comes from. So i am trying to "decode" this error but it is a little bit difficult for me to understand. I would appreciate if someone could explain me why this is happening. I dont't know if it is good that i ask this question here but it is about my master and i really need to find why this error appears. Thanks!!

Implementing DCT2/DCT3 in Python

I am having some issues with my code for doing the final implementation for a data to image library using the JPEG DCT2/3 process. Linked below is the source code that I am using. I am using the python code under the SageMathCloud. I've been trying to figure out this specific error for the past several hours, and no matter how I do it, it just doesn't work. I get the same error message everytime, and I just can't track down the reason why.
Gist

Categories