Regular Python videos, support my channel via Patreon: www.patreon.com/join/3552586
► Automation - creation of documents (CSV, DOCX, PDF) ► EBAY API with Python ► Bitcoin ► ML and AI including chatGPT, LangChain and HuggingFace ► Google Cloud Platform Tutorials ► API integration + FastAPI ► Network Automation ► Web Scraping (Requests, Scrapy, BeautifulSoup)
Thank you! - venv is good practice but tbh most of the time I don't - except when I know I will want to do a pip freeze and create requirements.txt. So in short, no, you don't have to!
Let me know if you'd like to see a follow up video to this? - I can insert the scraped data into a vector database, so we can do semantic search, or I could do a more traditional insert into Sqlite? or PostGres?
That's just what I used to keep this video as simple as possible - to develop it properly you'd most likely use a vector database with "descriptions" and "full_article" - for instance if you were providing a semantic search on a collection of documents. I did one project before where it did a semantic search across youtube video transcripts if that's of interest too 👍
Great suggestion, my laptop cooling fan kicks in and everything goes slow when I run locally. I may try on a Linux VPS again.Last time I tried that I had a message about CUDA and it wouldn't run. I could just do the vids on my laptop and edit at 4x or 8x speed! Thanks for the comment, will look into it!
I don't have a MAC, but if you'd like to help test, we could sort something, I'd ask chatGPT to amend my current Linux script (for MAC) and go from there...
@ochiengodero2075 Thank you! I try to answer every comment, (I did miss some when I was rough with cv '19). I just thought, if you have a mac, you could run a VM on it with ubuntu for Bitxoin node btw. You'd just need to get the VM to use the network hardware for connection to internet.
I now believe that it's only viable to jump through all the eBay hoops if you are a very motivated business owner coding it all for yourself, or you can spare a developer for a month to decipher their documentation. As a freelancer you couldn't make it pay!
Hello python360. It was a great video and i worked it. But i got a two problem. The first one is that, it extracts frames perfectly but the text extracted from frames are totally different. Like it extracting many symbols like (,''!;:"') . But these symbols are not present in the frame. It extracting the text but not accurate. Another problem is that, I downloaded Tamil and Hindi language file from github and paste it in exact directory. I also added Eng+tam+Hin in the code. But it's not working . It extracting only english language. What is the problem, can you please explain.
did the same but getting these errors: Traceback (most recent call last): File "c:\Users agha\OneDrive\Desktop\test\pycdemo.py", line 2, in <module> liObject = cdll.LoadLibrary('./cdemo.so') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users agha\AppData\Local\Programs\Python\Python312\Lib\ctypes\__init__.py", line 460, in LoadLibrary return self._dlltype(name) ^^^^^^^^^^^^^^^^^^^ File "C:\Users agha\AppData\Local\Programs\Python\Python312\Lib\ctypes\__init__.py", line 379, in __init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [WinError 193] %1 is not a valid Win32 application
Hi @python360, I was wondering if you knew how to pull shipping label cost information. I've been struggling with this. For some reason UPS labels show up in transactions but not USPS.
Thank you! Yes. 100% The developer account and normal account are totally separate, and so can email addresses be different (I know this as I use a dedicated email for developer) 👍
I have a question as I came across your video. First, thank you for your content as it is very helpful. Is there another method to extract the text from a video without taking the snapshot or picture every 4 second?
Hello! Thank you for your kind comment. You could maybe adjust the timing to say 3 seconds, or 2 seconds or whatever works, but using this method there will need to be some sort of capturing of the picture in order to do the text recognition. Perhaps there will be an AI product that can do it as the video plays, but using Tesseract and Python, this is the only way I know of. If someone else reads this and can advise then that'd be neat!
The RU-vid algorithm seems to be very harsh on smaller channels - I made this last year and didn't dare make it public in case it lost viewers/caused unsubscribes. I'm past worrying about that now., "Que Sera Sera"
This is gold! Thank you so much for putting this together. Much appreciated. I would like to set up a basic application to pull my listings from ebay and push to another platform. Any suggestions on where to start? Easiest language to use, etc? Feel free to respond to me as a 5-year old LOL
Thank you for the good comment! Python will be the easier language to use. You can experiment getting data with the different API endpoints once you have your "developer key" - the authentication is quite complicated, and you'll need to get a new token, every 2 hours. The ebay developer forum is the best place for problems/tips.
It can be laborious, but if you follow their documentation eventually the mists clear! I've not used any API that uses X-auth as that's even more fiddly, certain API's need it, and some don't, so try find the ones that dont (the docs will state if x-auth is needed) while you're starting out 👍
since app is one directory up from tests/test_bcd.py, how can you import it such as from app.fetch_www import parse? This would need to go one directory up first?
. ├── app │ └── fetch_www.py └── tests └── test_bcd.py have you got the structure as above? (have you got tree installed, it's great for this kind of stuff)
I typed it all back in as I'd not kept the project, I tested it and it works ok : github.com/RGGH/mok One tip : specify your python version if you are doing it from command line : eg : $python3.10 -m pytest
@@python360 I saw this in the repo Add the project root directory to the PYTHONPATH # Replace '/home/rag/Documents/python/mok I didn't do this, that could be it no?
@@mytrustysteed8476 Yes, PATH can be a problem - if you use "python3.10 -m pytest" or whatever version of python you use then this should work. You can run "which python" and "which pytest" from terminal to check the paths.. See this : g.co/gemini/share/b76c08a4f516 PATH is a pain, but as it works on my set up then, check PATH, make sure you have __init__.py and also you can drag the file icon from VSCode file explorer, and hold down shift and drop it in between quotes when trying to get the right path into your python code.
Hi when running the tests I get error "modulenotfounderror no module named app" . I know there is something wrong with the relative imports? but I followed your structure exactly
Thank you for the video! Some of those salaries are VERY low considering living in the UK, how could someone lives there with that? Doing another video for graduates would be much appreciated, thank you again.
Yes, since the money printing/debasement during the pandemic the cost of living has increased way more than salaries. (Politicians now try and blame other things as if we don't remember). Thank you for the suggestion, I'll do some research and then do one on graduate/junior-mid level positions.👍
Hi thanks for the videos, I’m stuck on registration, I got the verification email and then was notified that my application was rejected… please advise? I’ve tried several different emails with and without vpn
Ah. I must have been lucky then. I had to wait approx 3 days but was approved eventually. Are you able to contact them and ask why? Fyi, I used a protonmail email address.
Very good question! "it is mostly legal to work remotely from a different country from where your company is based. However, there is no one-size-fit-all approach" iasservices.org.uk/is-it-legal-to-work-remotely-from-another-country/
It would mostly depend on the tax system i.e. you pay income tax to the UK gov or your local gov? If you aren't working for a company that deals with international teams and has a local base it could be an issue, particularly with your local government proving you are paying your dues properly. So your first step is asking your government tax office to see how the rules are laid out.
great tutorial, if your still interested in airport live stream there are 2 good channels to watch. they are Pomfus and Mark and SydSquad. Both are in Australia
I can't remember, (its v late in the UK) but the alternative would be to use 'python-docx-tpl' and do it that way. Use pip install and then add your own variable placeholders using jinja syntax.
Im trying to recreate from zero a complete template with python-docx like a resume filling its content, the body is ok but the problem is that i need to add in the header section an image like a background to cover all the header and text is front of this image. How can i achieve this?
You might be better using "python-docx-template" pip install docxtpl - so that you can start with a template file with an image already present that you put in once, manually and then reference that template and use the corresponding jinja syntax where you need to modify paragraphs etc
@@python360 thanks for the response. Im seeing your videos and i have this problem: as i see with python-docx-template i can replace names with curlys but in my case there are no curlies and also i have some bullet list as sample that i dont need It. My template IS a resume as you know there IS a section "skills" with these bullets sample, i need to eliminaré that list and populate with my own list of skills and also i have a work experience section list with position, dates, company and descripción (same with sample that i don't need It). Also the header section mentioned in the last comment. What can you recomend or It IS posible to work all these with python-docx-template instead DOCX?
@@henryvaldivia3355 Yes, so "Template" means "The word document you want to use with some variables" in this case? The word "template" in "docxtpl" is just a standard word/docx file, it's not a template file in the microsoft sense. This means you create your word doc as you would manually, and then add the jinja curly braces only where you need a variable? Forgive me if I not understood correctly, but I'd go with pip install docxtpl rather than pip install docx
Great tutorial, sir. But it would be great for me to hear about matadata-based text chunks filtering using langchain + qdrant! :) Liked and Subscribed : )
thanks for the video... if you want it to have a specific format do you just put the variable in that format like {{ variable }} has font courier, bold, size 14 while other items in whatever format you wish? also could you dynamically adjust a table like this too with a template variable...combining this concept and what you described in another video?
Thanks for the comment. Yes to your 1st question, andas for the table width, I don't know, I'll do some tests and maybe make a video if I can - maybe try this : stackoverflow.com/a/43053996/12670189
@@python360 thanks. I tried it out yesterday... it worked out just fine, but I did {{variable}} to avoid spacing issues. I also did it using pandas and used a ms excel file vs csv format file... that was good so I could have the input use drop down lists and such. Also I noticed the pdf conversion library needed office installed. As I do most of my development in wsl, I wasn't sure how to install it. I found another library that is convert2pdf. it required libreoffice installed, which seemed to be ok. it just had 2 snags 1) It is verbose about the conversion 2) my footer font size got adjusted. I emailed the developer to see if there is a workaround. if you know how to install ms office in a headless way in Linux, then I can go towards your referenced pdf conversion library instead.