Skip to content

Instantly share code, notes, and snippets.

@rdhyee
Last active December 3, 2015 15:38
Show Gist options
  • Save rdhyee/9af71a6517f404e33928 to your computer and use it in GitHub Desktop.
Save rdhyee/9af71a6517f404e33928 to your computer and use it in GitHub Desktop.
UC_Berkeley_job_link.ipynb shows a URL template for a direct link to the job listings for UC Berkeley. Alas, it won't work without a browser's already having a cookie from the hr site. See the output to `curl -v -L -X GET "https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpenin…
* Adding handle: conn: 0x7fe21a003000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe21a003000) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to hrw-vip-prod.is.berkeley.edu port 443 (#0)
* Trying 169.229.161.51...
* Connected to hrw-vip-prod.is.berkeley.edu (169.229.161.51) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: hrw-vip-prod.is.berkeley.edu
* Server certificate: InCommon RSA Server CA
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0> GET /psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=20765&SiteId=1&PostingSeq=1 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: hrw-vip-prod.is.berkeley.edu
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Connection: close
< Date: Thu, 03 Dec 2015 15:31:39 GMT
< Transfer-Encoding: chunked
< Location: https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=20765&SiteId=1&PostingSeq=1&
< Content-Type: text/html
< Set-Cookie: hcm-pa01-80-PORTAL-PSJSESSIONID=z2NoeGSIgC19LJIzKNcv5NAlRTqEvMZW!147499950; domain=.is.berkeley.edu; path=/; HttpOnly
< X-Powered-By: Servlet/2.5 JSP/2.1
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
* Issue another request to this URL: 'https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=20765&SiteId=1&PostingSeq=1&'
* About to connect() to hrw-vip-prod.is.berkeley.edu port 443 (#1)
* Trying 169.229.161.51...
* Adding handle: conn: 0x7fe21b802000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 1 (0x7fe21b802000) send_pipe: 1, recv_pipe: 0
* Connected to hrw-vip-prod.is.berkeley.edu (169.229.161.51) port 443 (#1)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: hrw-vip-prod.is.berkeley.edu
* Server certificate: InCommon RSA Server CA
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
> GET /psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=20765&SiteId=1&PostingSeq=1& HTTP/1.1
> User-Agent: curl/7.30.0
> Host: hrw-vip-prod.is.berkeley.edu
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Connection: close
< Date: Thu, 03 Dec 2015 15:31:39 GMT
< Transfer-Encoding: chunked
< Location: https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/?cmd=login&errorPg=ckreq&languageCd=ENG
< Content-Type: text/html
< Set-Cookie: hcm-pa01-80-PORTAL-PSJSESSIONID=Ch5oeGYJgcH0ArFUbcTM7geZti2aeW2z!147499950; domain=.is.berkeley.edu; path=/; HttpOnly
< X-Powered-By: Servlet/2.5 JSP/2.1
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 1
* Issue another request to this URL: 'https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/?cmd=login&errorPg=ckreq&languageCd=ENG'
* About to connect() to hrw-vip-prod.is.berkeley.edu port 443 (#2)
* Trying 169.229.161.51...
* Adding handle: conn: 0x7fe21d800600
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 2 (0x7fe21d800600) send_pipe: 1, recv_pipe: 0
* Connected to hrw-vip-prod.is.berkeley.edu (169.229.161.51) port 443 (#2)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: hrw-vip-prod.is.berkeley.edu
* Server certificate: InCommon RSA Server CA
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
> GET /psc/JOBSPROD/?cmd=login&errorPg=ckreq&languageCd=ENG HTTP/1.1
> User-Agent: curl/7.30.0
> Host: hrw-vip-prod.is.berkeley.edu
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Cache-Control: no-store
< Date: Thu, 03 Dec 2015 15:31:40 GMT
< Content-Length: 3725
< Content-Type: text/html; CHARSET=utf-8
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Set-Cookie: hcm-pa01-80-PORTAL-PSJSESSIONID=wPFoeGeJWHx2TvqkbQMmC0xGusLWYkaY!147499950; domain=.is.berkeley.edu; path=/; HttpOnly
< Set-Cookie: PS_TOKEN=; domain=.is.berkeley.edu; expires=Thu, 01-Jan-1970 01:00:00 GMT; path=/
< RespondingWithSignonPage: true
< X-Powered-By: Servlet/2.5 JSP/2.1
<
{ [data not shown]
100 3725 100 3725 0 0 2981 0 0:00:01 0:00:01 --:--:-- 2981
* Connection #2 to host hrw-vip-prod.is.berkeley.edu left intact
<html dir=ltr lang=en>
<HEAD>
<TITLE>An error has occurred.</TITLE>
<!--
* ***************************************************************
* This software and related documentation are provided under a
* license agreement containing restrictions on use and
* disclosure and are protected by intellectual property
* laws. Except as expressly permitted in your license agreement
* or allowed by law, you may not use, copy, reproduce,
* translate, broadcast, modify, license, transmit, distribute,
* exhibit, perform, publish or display any part, in any form or
* by any means. Reverse engineering, disassembly, or
* decompilation of this software, unless required by law for
* interoperability, is prohibited.
* The information contained herein is subject to change without
* notice and is not warranted to be error-free. If you find any
* errors, please report them to us in writing.
*
* Copyright (C) 1988, 2012, Oracle and/or its affiliates.
* All Rights Reserved.
* ***************************************************************
-->
<!--
-->
<!--
*
-->
<link href="/JOBSPROD/styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
color: #48598c;
}
a:visited {
color: #48598C;
}
a:hover {
color: #48598C;
}
a:active {
color: #48598C;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</HEAD>
<body>
<table width="100%" height="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="96" align="center" valign="middle"><img
src="/JOBSPROD/images/OPSE_logo.gif" alt="Oracle PeopleSoft logo" width="322" height="96"></td>
</tr>
<tr>
<td height="250" align="center" valign="middle">
<form action="https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/?cmd=login&languageCd=ENG" method="post" id="login" name="login" autocomplete="off">
<input type="hidden" name="httpPort" value="">
<input type="hidden" name="timezoneOffset" value="0">
<TABLE width="500" border=0 cellPadding=0 cellSpacing=0>
<TR>
<TD width="600" align=center valign="top" class="psloginmessagelarge"><p>You must have cookies enabled in order to sign in to your PeopleSoft application.</p>
<p class="psloginmessage">Return to Sign In with cookies enabled. <br>
<span class="psloginmessage">If your attempt fails, please contact your System Administrator.</span> </p>
<p class="textnormal"><a HREF="/psc/JOBSPROD/?cmd=login&languageCd=ENG"> Sign in to PeopleSoft </a> </p></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td height="30" colspan="2" valign="bottom" class="pslogincopyright">&nbsp;</td>
</tr>
<tr>
<td width="50%" valign="bottom" class="pslogincopyright">Copyright &copy; 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.</td>
<td width="569">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</BODY></HTML>
@rdhyee
Copy link
Author

rdhyee commented Dec 2, 2015

In search of a template to link to job postings listed at http://hrms.berkeley.edu/jobs.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment