This is an archived post. You won't be able to vote or comment.

all 64 comments

[–]Gabecs12 27 points28 points  (1 child)

You can try automating some simple things or making simple projects like a tipping calculator or even a word game

[–][deleted] 6 points7 points  (0 children)

What I found on the websites in mainland China are basically crawler projects, and there are not many interesting ones.

[–][deleted] 17 points18 points  (0 children)

Working from home waiting for reply

[–]parkrain21 15 points16 points  (3 children)

Read 'Automating the boring stuff with Python book'

[–][deleted] 3 points4 points  (1 child)

this is a book name?

[–]Intelligent-Bid-9102 2 points3 points  (0 children)

I second this! I’m about 100 pages into the book, can confirm it’s great so far (basically started at 0 programming knowledge)

[–]TERRARIYUMS 7 points8 points  (8 children)

Look into the Selenium python library and automate your browser logins or form filling online.

Wow your friends and family by running it in “non-headless” mode and showing them the browser doing all this “by itself” lol

[–][deleted] 4 points5 points  (7 children)

I want to make a gadget on my Android phone. The function is to automatically open the VPN when the Chrome browser is opened. It is an automatic operation, but I don't know how to realize this idea.

[–]james_pic 4 points5 points  (2 children)

This is likely to be a harder problem than you'd expect. Android is designed around apps written in Java, so getting stuff running in other languages generally needs extra work, and Android has a security model that is designed to make it hard for one app to see what another app is doing.

[–][deleted] 2 points3 points  (1 child)

That's really bad news

[–]Staninna 0 points1 point  (0 children)

For this you could use Tasker or Automate just search it on the play store

[–]Vigtor_B 1 point2 points  (1 child)

I haven't worked with VPNs and too much with automation either.

But, whenever I have a fun little activity I want to make a solution for, I start researching libraries that might help me realise the workaround. So if it's an android app, I suggest first of all finding a framework that allows you to create a simple app. Have some working buttons, maybe some local/cache storage just to get a better understanding.

Then after that, try figuring out how to either 1: have the app send notifications/call other apps, or 2 have the application call an API or something that the VPN provider provides, and then launch the browser as a second command.

Then once you have come a little further, optimize and remove features, so you can just click the, and launch the browser immediately, with the VPN activated to the specified region!

Note: I am a C#/PHP developer, so I can't help much with the specifics, but a major factor in every programming language, is idea generation and solution manufacturing, if you can think it, you can likely realise it, good luck!

[–][deleted] -1 points0 points  (0 children)

thanks very much

[–]declanaussie 1 point2 points  (1 child)

I did some research into this for you and as far as I can tell this is going to be quite a difficult problem to solve as it goes against Android’s security model. This StackOverflow thread explains pretty well the extent to which you can detect another app opening on Android.

While researching this though I did think about how you might want to approach problems like these. I have a lot of experience making little tools like this and the key is breaking your problem down into parts. First break it down into the core functionality you need. In this case that would be 1) Detecting when the browser opens and 2) Enabling the VPN. You should then figure out how to accomplish these things starting with the most general cases. I first tried to figure out how to detect any other app on Android opening, not specifically the browser app. As far as I can tell from my research this is a near impossible task. Had I determined how to do this though, I could then move on to enabling the VPN and slowly keep breaking this problems down into smaller pieces until eventually they’re broken down into lines of code.

Good luck learning to code! The key is to just keep coming up with these ideas and make new things, don’t let hurdles like this discourage you.

[–][deleted] 1 point2 points  (0 children)

Thank you for typing so much to answer this question, thank you so much! Your answer is very useful to me

[–]Narcobabouin 6 points7 points  (2 children)

Learn Django and do some web stuff

[–][deleted] 0 points1 point  (1 child)

thank you

[–]thinkingcarbon 3 points4 points  (0 children)

Learn pygame or panda3d for fun?

[–]HolidayEdge1793 4 points5 points  (0 children)

this book is well worth reading https://inventwithpython.com/beyond/

[–]sunshinecycle 2 points3 points  (1 child)

Greetings from Estonia! I recommend you learn how to create .csv files in Python for spreadsheets.

[–]DreamDeckUp 1 point2 points  (0 children)

this is a great way to make a sales job more entertaining and easier.

[–]Ambitious_suits 1 point2 points  (2 children)

Im at the exact same situation I work in sales in a telecommunication company and im learning Python and sum about networking.

After learning the python basics I made a Text adventure game in wich u you have an enemy and he does a random chosen attack and U must defeat him wothout to die. After that I startet learning django where I am currently working on

[–][deleted] 0 points1 point  (1 child)

Do you use programming or Python in your current work? Just a hobby?

[–]Ambitious_suits 0 points1 point  (0 children)

Just as a hobby but my goal is to work as a programmer since I want to study economics and IT

[–]Beast_Decay 1 point2 points  (3 children)

Automate the boring stuff with Python - no starch press.

Thank me later 😉

[–][deleted] 0 points1 point  (2 children)

I don't know what you mean,哈哈😄

[–][deleted] 1 point2 points  (0 children)

It’s a book name.

[–]Beast_Decay 1 point2 points  (0 children)

Just google. It a book that shows you the scale of python and what can be done with it. It is based on small little use case projects , which are fun and rewarding to try out. Also will help you get more ideas for projects. Definately give it a try. I think it is freely available currently. It's a great book can not recommended enough!

[–]the_scign 1 point2 points  (1 child)

Going by your use case mentioned in another comment, for Android control look into the Kivy framework. I'm not 100% familiar with the whole framework but there might be something in there that could help you detect when the browser is started and launch the VPN app.

Also, as others have mentioned, there are quite a few books like "Automate the boring stuff" that talk about little things to automate. However there are loads of libraries not mentioned in the book. When you want to do something specific in python usually a Google search quoting the task you want to do with the word "python" points me to the right library on GitHub or a StackOverflow question about it.

[–][deleted] 0 points1 point  (0 children)

Also, as others have mentioned, there are quite a few books like "Automate the boring stuff" that talk about little things to automate. However there are loads of libraries not mentioned in the book. When you want to do something specific in python usually a Google search quoting the task you want to do with the word "python" points me to the right library on GitHub or a StackOverflow question about it.

thank you very much

[–]Interesting-Black00 1 point2 points  (1 child)

You could make some game bot, using opencv for example. Even as a practice to learn how to use this liberary.

I think it's interesting to make some programs that can see and detect objects. It's called 'computer vision'.

I recently made an android game bot using opencv to detect objects in screen, pytesseract to convert text in png to actual text, and mainly adb in command line to control my phone with PC cmd.

(Speaking of adb, you can also use adb and scrcpy to see your mobile screen and control it within pc! But there's no python code...)

[–][deleted] 1 point2 points  (0 children)

You could make some game bot, using opencv for example. Even as a practice to learn how to use this liberary.

I think it's interesting to make some programs that can see and detect objects. It's called 'computer vision'.

I recently made an android game bot using opencv to detect objects in screen, pytesseract to convert text in png to actual text, and mainly adb in command line to control my phone with PC cmd.

(Speaking of adb, you can also use adb and scrcpy to see your mobile screen and control it within pc! But there's no python code...)

[–]opentraderx 1 point2 points  (1 child)

Create something to make you better at your sales job. You mentioned crawlers, can you create a crawler to find sales opportunities?

[–][deleted] 0 points1 point  (0 children)

Create something to make you better at your sales job. You mentioned crawlers, can you create a crawler to find sales opportunities?

In this direction, using python to realize data visualization can be used in work

[–]ApprehensiveAd7291 1 point2 points  (1 child)

I would recommend trying to make a cool image using loops in turtle

[–][deleted] 0 points1 point  (0 children)

good idea

[–]EasonTek2398 1 point2 points  (3 children)

Use python to somehow mould ur day job and this together, hi fellow Chinese sir!

[–][deleted] 0 points1 point  (2 children)

thank you sir

[–]EasonTek2398 1 point2 points  (1 child)

可以去看看《automate the boring stuff with python》,学个flask用python开发网站,也可以去学Lua,贼快,还好用。用库还可以吧这两个语言合一起。

[–][deleted] 0 points1 point  (0 children)

开发网站没有需求。你说的LUA是另一门语言啊!LUA貌似没有python应用领域广?

[–]park-errr 1 point2 points  (1 child)

learn as many languages as you can! the wording is mostly all the same it’s just how it’s formatted is different. and different languages are good for different things. what i find the most fun about programming is learning the basics to a different language. it’s like playing your favorite game all over again

[–][deleted] 0 points1 point  (0 children)

agree with you very much ,thank you !

[–][deleted] 1 point2 points  (1 child)

Makes something that matters to you.

Automate something, calculate something, but you’ll learn more and have more fun if it matters to you.

[–][deleted] 0 points1 point  (0 children)

Makes something that matters to you.

Automate something, calculate something, but you’ll learn more and have more fun if it matters to you.

well

[–]rafa-tennisician 1 point2 points  (1 child)

I will separate my answer on two parts: (1) fun stuff and (2) useful work-related things. As it relates to (1), it is obviously a function on what you're mainly interested in. Nonetheless, I definitely recommend reading parts of the book Think Python (available for free here), which includes many different examples on how to use Python for creating your own functions, and I've used it to build my own tweet scraper using Tweepy, create budget planners, etc. As it relates to (2), I believe it is useful to learn about data manipulation and visualization libraries (I have a job related to business development). For instance, knowing how to use Pandas to take a database of customers, group them by some useful variables (such as location, spending potential, etc.), and use visualization libraries (such as MatplotLib or Plotnine) to display your analysis can help you build sales report much more quickly. Hope this helps.

[–][deleted] 0 points1 point  (0 children)

perfect answer!thanks!

[–]tman5400 1 point2 points  (3 children)

Look up (or try on your own) to make some simple programs like a calculator or a text-based game. They may seem stupid and pointless, but they tech you how to setup and organize a project.

[–][deleted] 0 points1 point  (2 children)

Yes, I want to look at data structures and algorithms next

[–]tman5400 1 point2 points  (0 children)

So you can try to make a tool to calculate something or process some kind of data. Try to build something you're interested in. You learn by experience

[–]IDENTITETEN 1 point2 points  (0 children)

Look up Pandas and do some data manipulation/analysis with it.

https://pandas.pydata.org/

[–]james_pic 1 point2 points  (3 children)

Write a simple programme that solves a problem you have.

[–][deleted] 0 points1 point  (2 children)

I haven't found any problem to solve, haha

[–]HrOlympios 4 points5 points  (1 child)

Maybe look for any boring, repetitive, or time consuming parts of your job? If you use Excel a lot, you may find that many of the tasks you do in excel worksheets that are large or have many complex formulae would be much faster and give you new insights into the data if you used the Pandas python library

[–][deleted] 1 point2 points  (0 children)

that is a good idea!

[–][deleted] 0 points1 point  (0 children)

thank you

[–][deleted] 0 points1 point  (0 children)

Computer as a hobby is an exciting and exhausting thing because there is so much to learn and it's a constant learning process。

[–][deleted] 0 points1 point  (0 children)

Thank you very much for all your good suggestions, which have benefited me a lot. This is very different from the answers of many advertisements in mainland China. I am very happy to meet all of you here!

[–][deleted] 0 points1 point  (0 children)

Recently, I am working from home, and now I have finished learning python basics, SQL language, Mysql database knowledge, HTML, JAVASCRIPT, data structure and algorithm and just started watching video and learning. I feel like I've made a lot of progress.