sunjester

Members
  • Content Count

    21
  • Last visited

Community Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. what about some more games for gambling like poker, blackjack, checkers, or chess
  2. just use wget. wget -nc -p https://www.example.com/
  3. https://www.securityweek.com/eu-slap-google-fresh-fine-sources
  4. https://boingboing.net/2019/03/17/facebook-is-next.html
  5. https://darkwebnews.com/cryptocurrency/bestmixer-btc-mixing-service-available-on-tor/
  6. https://thehackernews.com/2019/03/data-breach-security.html
  7. you could play games like most all other kids do. its a waste of time.
  8. maybe when a mod is made a mod you guys should make sure they know how to use the forum and its functionality. I was banned from the shoutbox for using a shoutbox command that made my text red. I didn't use a bbcode. this is sign that the mod has no clue about what commands the shoutbox has. how can you ban someone from using the functionality of the shoutbox? it's poor judgement on whoever made the guy a moderator. its actually a command that started in IRC a long time ago: /me
  9. cable tv is dead. the actors who jumped on board with nettv will forever be heroes.
  10. i dont use discord (or any messaging app/platform), but you can pm me here or email me [email protected] im a full stack developer.
  11. wget -nc --recursive https://example.com/
  12. Introduction I normally don't use python very much. However, I can always jump right into using it since I know how to properly read documentation. I am going to show you how you can read some documentation and start making requests to websites through python and the requests library. As with all my tutorials we will be using Linux (ubuntu xenial), and no I will not cater to the Windows kids. Requirements This tutorial will require a few things, including python. I am using 2.7 (most of you probably use 3, I don't.). Python >= 2.7 pip >= 19.03 python requests library >= 2.21 Checking Versions with Pip You can easily check the requests version, or if it's even installed like this pip show requests Documentation The website for the requests library is found here. We will be following the documentation and using the software as intended by the developers, which should give you an insight into reading documentation and finding/using other libraries. Including the Library It's pretty easy to add the library to your script. Like almost all other libraries, using the import keyword. import requests Getting HTML We can use a simple line of code to requests an HTTP GET request for HTML of a web site. req = requests.get("https://www.imdb.com/title/tt0093177/") This is where reading the documentation will come in handy. The code above will make the request to the IMDB page, but printing the req variable probably won't give you what you are looking for, so let's see what the will do. It printed the response code. Back on the website (documentation) we see that it's a response object, which is probably why it has the angle brackets around it also. Response Object Documentation Since it returned an object, let's go see what the properties of this object are in the documentation. Here is the documentation for the Response object of the Requests library. We can see there are a few things here, let's try to use content and see if we get the source. #!/usr/bin/env python import requests req = requests.get("https://www.imdb.com/title/tt0093177/") print req.content Yep, there is the source.
  13. There comes a time when you need to format some JSON in unix, in that case, use jq. Install jq sudo apt-get -y install jq Using jq So let's parse some JSON, let's use the nulled feed, first download the feed to a file curl -s https://www.nulled.to/misc.php?action=getFeed >feed Now let's parse some of it, let's try the home stuff jq '.home' feed so if we wanted to get the titles from the .home section of the feed jq '.home[].title' feed #!/bin/sh curl -s https://www.nulled.to/misc.php?action=getFeed >feed jq '.home[].title' feed rm feed